Displaying 1 result from an estimated 1 matches for "roles_control".
2007 Jan 29
0
mock.with(Hash) expects an Array ?
...ange the role of a user'' FAILED
Mock ''role'' expected :update_attributes! with ([:name, "developer"])
but received it with ({"name"=>"developer"})
(eval):3:in `update_attributes!''
/home/francois/src/smrty2/config/../app/controllers/roles_controller.rb:11:in
`update''
./spec/controllers/roles_spec.rb:35:
Looks like the call to #with changed the Hash to an Array.
Can anyone else confirm this ? This is on 0.7.5.1.
Thanks !
--
Fran?ois Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/