I want to mock the following:

MyModel.where(".....").last

I tried:

MyModel.should_receive(:where).and_return(nil)

but this of course doesn't match the expectation since the call to .last was
not mapped in the mock code.

How can I do this?
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to