search for: smrty2

Displaying 2 results from an estimated 2 matches for "smrty2".

Did you mean: smrty
2007 Jan 29
2
Cryptic error message when no controller_name
...do specify "can assign roles to other users" do # ... end end I get the following cryptic error message: 1) NoMethodError in ''A project owner can assign roles to other users'' undefined method `session='' for #<Object:0xb741bed4> /home/francois/src/smrty2/vendor/plugins/rspec_on_rails/lib/spec/rails/context/controller.rb:134:in `setup_extra'' /home/francois/src/smrty2/vendor/plugins/rspec_on_rails/lib/spec/rails/functional_eval_context.rb:22:in `setup'' /home/francois/src/smrty2/vendor/plugins/rspec_on_rails/lib/spec/rails/context/co...
2007 Jan 29
0
mock.with(Hash) expects an Array ?
...''A project owner can change 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.rubyfo...