[rspec-users] [Cucumber] undefined method `record' for #<Class:0x2473e3c> (NoMethodError)

jfrankov jfrankov at gmail.com
Mon May 4 20:17:53 EDT 2009


I have a step definition file where I'm saving a model object and want
to use this syntax (it's common, I see it in examples everywhere):

Event.should have(1).record

...but it gives this error:

undefined method `record' for #<Class:0x2473e3c> (NoMethodError)

Am I missing some library or require or something? I added "require
'spec/expectations'" to my env.rb but no change. Any ideas?

Thanks!
-Jason



More information about the rspec-users mailing list