Hey,

I recently switched to Rails 3(.1) and, using rspec-rails 2.6.1, I
find can no longer stub AR class methods, like :find.

So, where Comment is an AR class, I can't do this:

 
Comment.should_receive(:find).and_return(...

What is the new way of doing this, please?

Lille
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to