[rspec-users] what's the meaning of to_param?

Zhenning Guan lists at ruby-forum.com
Thu Mar 19 08:46:27 EDT 2009


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/.


More information about the rspec-users mailing list