[rspec-users] what does :save => true mean in mock_model ?

David Chelimsky dchelimsky at gmail.com
Sat Jun 27 12:15:52 EDT 2009

On Sat, Jun 27, 2009 at 10:55 AM, Zhenning Guan<lists at ruby-forum.com> wrote:
> one more question.
> Forecast.stub!(:new).and_return(@forecast)
> Forecast.should_receive(:new).with(anything()).and_return(@forecast)
> what's the different between stub! and should_receive ?

Read this: http://rspec.info/documentation/mocks/ and then feel free
to ask questions about anything  you don't understand.


More information about the rspec-users mailing list