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?
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?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs