I'm a bit confused how to hook into a particular model object instance and mock/stub it?
I understand how to hook into a class level method like: User.should_receive(:where).and_return(....) but what if my method looks like: def some_thing user = User.where("...") user2 = User.where("...") user.delete user2.update_attributes(some_attr) end How can I hook into one or both model instances of 'user' and 'user2' at the same time in the same test? Or is it only possible to do it one at a time?
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users