[rspec-users] ActiveRecord::Base.should_receive(:find) fails

Tero Tilus tero at tilus.net
Thu Feb 19 13:34:41 EST 2009

I've got an AR-model with some find-magic I want to test.  When I have


in my example find-method somehow disappears alltogether and I get

  NoMethodError in 'MyModel find-options are passed on correctly'
  undefined method `find' for MyModel

And docs tell that (at least something really close to that one)
should work


Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/

More information about the rspec-users mailing list