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

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


@weather  = mock_model(Weather, :id => "1")
@forecast = mock_model(Forecast, :weather => @weather, :save => true)

what's the different between with :save => true or without it?
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list