search for: ecated_assert

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

2006 Mar 15
2
Session (stored in db) not working in testing mode
...L. Changing environment.rb ''config.action_controller.session_store = :active_record_store''. But now all my tests fail. I get the following error: 1) Failure: test_authorized_new(AdControllerTest) [c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/depr ecated_assertions.rb:23:in `assert_session_has'' ./functional/../test_helper.rb:34:in `login'' functional/ad_controller_test.rb:49:in `test_authorized_new'']: <:user_id> is not in the session <#<ActionController::TestSession:0x31d2198 @attributes={"flash"=...
2006 May 03
0
Accessing the params hash in a functional test not working
...or_default :action => "login" end end end The test fails as follows. Note that session[:debug_params] is missing the parameters sent by post. 7) Failure: test_auth_bob(UserControllerTest) [c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1 /lib/action_controller/depr ecated_assertions.rb:23:in `assert_session_has'' ./test/functional/user_controller_test.rb:25:in `test_auth_bob'']: <:user> is not in the session <#<ActionController::TestSession:0x36a8380 @attributes= {:user=>nil, :debug_params=>{"action"=>"login&qu...