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

Zhenning Guan lists at ruby-forum.com
Sat Jun 27 11:55:43 EDT 2009


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 ?
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list