I want to mock the following:
MyModel.where(".....").lastI 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 [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
