From 316dd059568c3769ece5837015e35eb304486a4e Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 8 Dec 2011 21:41:13 -0200 Subject: [PATCH] Fix AccountController tests --- test/functional/account_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index a6a275f..e0d768b 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -148,7 +148,7 @@ class AccountControllerTest < ActionController::TestCase def test_should_delete_token_on_logout login_as :johndoe get :logout - assert_equal @response.cookies["auth_token"], [] + assert_nil @response.cookies["auth_token"] end # "remember_me" feature is disabled; uncommend this if it is enabled again. @@ -662,7 +662,7 @@ class AccountControllerTest < ActionController::TestCase assert_response :success post :login, :user => {:login => 'testuser', :password => 'test123'} assert_not_nil session[:user] - assert_redirected_to :controller => 'profile_editor', :profile => 'testuser' + assert_redirected_to :controller => 'profile_editor', :profile => 'testuser', :action => 'index' end should 'not activate user when activation code is missing' do -- libgit2 0.21.2