Hi, I am doing functional test for my application, when i created a method in test folder test "valid_login_and_redirect" do post :authenticate,:user=> {:username=>''admin'',:password=>''admin''} assert session[:user] assert_response :redirect end i am getting the error as valid_login_and_redirect(AccountControllerTest) [functional/account_controller_test.rb:16:in `test_valid_login_and_redirect'' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `__send__'' /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb:60:in `run'']: <nil> is not true. Please help me -- Posted via http://www.ruby-forum.com/.