search for: ad_controller_test

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

Did you mean: read_controller_test
2005 Dec 14
1
Problems with testing - error posting to other controller
...", :user => { :login => login, :password => password } assert_response 302 # redirect assert_session_has :user_id assert_equal 1000001, session[:user_id] assert_redirect_url "http://#{@request.host}/user/home" end and added it to test_helper.rb . In my ad_controller_test I call it like login(), but this throws an error. In my test.log it get the following Processing AdController#user/login (for 0.0.0.0 at 2005-12-14 20:48:31) [POST] Parameters: {"user"=>{"login"=>"bob", "password"=>"atest"}, "act...
2006 Mar 15
2
Session (stored in db) not working in testing mode
...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"=>{}}>> Have I overlooked something? Kind regards, Nick -- Posted via http://www.ruby-forum.com/.