Is there a clean/simple way of stubbing the activerecord find() for a single instance?
As usual pattern, I see something like myModel = MyModel.new(...) MyModel.stub( :find ).and_return( myModel ) which can give problems in case we want to find other instances. ??? Saverio -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users