[rspec-users] what does :save => true mean in mock_model ?
dchelimsky at gmail.com
Sat Jun 27 11:02:52 EDT 2009
On Sat, Jun 27, 2009 at 9:55 AM, Zhenning Guan<lists at ruby-forum.com> wrote:
> @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?
The hash submitted to mock_model sets up method stubs:
=> MockExpectationError "received unexpected message 'save'"
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users