[rspec-users] Hash / params causing errors

Ramon Tayag ramon.tayag at gmail.com
Thu Nov 6 22:30:42 EST 2008


A bit dryer:

...
@params = { "login" => "loginator", "email" => "user at email.com" }
...
User.should_receive(:new).with(@params).and_return(@user)
...

Ramon Tayag


More information about the rspec-users mailing list