usually, I just use this way.

=====
@weather = mock_model(Weather)
=====

but recently I saw this. so what's the :to_param and :save options
meaning?

======
@weather = mock_model(Weather, :to_param => "1", :save => true)
======
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to