From 7d210785193d36d7e33dda74738ad001e645694e Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 20 Aug 2013 17:38:38 -0300 Subject: [PATCH] [postgres-tests] Fixing account tests --- test/functional/account_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 8fa94ff..4245a37 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -190,7 +190,7 @@ class AccountControllerTest < ActionController::TestCase post :change_password, :current_password => 'test', :new_password => 'blabla', :new_password_confirmation => 'blabla' assert_response :redirect assert_redirected_to :action => 'index' - assert User.find_by_login('ze').authenticated?('blabla') + assert assigns(:current_user).authenticated?('blabla') assert_equal users(:ze), @controller.send(:current_user) end -- libgit2 0.21.2