[rspec-users] quick question on rspec-rails for Rails 3: how to stub AR class methods like :find?

Lille lille.penguini at gmail.com
Tue Nov 8 18:06:27 EST 2011


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:


What is the new way of doing this, please?


More information about the rspec-users mailing list