Tom Stuart wrote: > On 10 Nov 2009, at 14:08, Saverio Miroddi wrote: >> Is there a clean/simple way of stubbing the activerecord find() for a >> single instance? > > MyModel.stub(:find).with(42).and_return(myModel)
Didn't work as expected - I'll do a bit of research and post again. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users