[rspec-users] undefined method `stub!' for

khelll khellls at gmail.com
Fri Jan 28 16:12:01 EST 2011


Hey,

Using RSpec 2.4.0 with Rails 3.0.3 I'm doing this:

rake spec:models and things works well.

Now, when doing  rspec spec/models/spot_spec.rb that has
Spot.stub! :test1

I get:  undefined method `stub!' for Spot:Class

Am I missing something here?




More information about the rspec-users mailing list