diff options
author | Azul <azul@leap.se> | 2012-11-12 19:42:00 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-12 19:42:00 +0100 |
commit | a0ba5ec9c705a74b86fdb558436fb05103bf88e3 (patch) | |
tree | 22e0562166e38eb84dc20c8e7addf3089b3af13c /users/test/functional/application_controller_test.rb | |
parent | 05ea71016fd54a14159c72299c25efbdc2f177bc (diff) | |
parent | fe8b49232d31681667badaaeff7aa4d0a40445ea (diff) |
Merge branch 'develop' into feature-client-side-validations
Conflicts:
Gemfile.lock
Diffstat (limited to 'users/test/functional/application_controller_test.rb')
-rw-r--r-- | users/test/functional/application_controller_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/users/test/functional/application_controller_test.rb b/users/test/functional/application_controller_test.rb index 69bcb2f..857bae5 100644 --- a/users/test/functional/application_controller_test.rb +++ b/users/test/functional/application_controller_test.rb @@ -8,20 +8,19 @@ class ApplicationControllerTest < ActionController::TestCase end def test_authorize_redirect - stub_logged_out @controller.send(:authorize) assert_access_denied end def test_authorized - @user = stub_logged_in + login @controller.send(:authorize) assert_access_denied(false) end def test_authorize_admin - @user = stub_logged_in - @user.expects(:is_admin?).returns(false) + login + @current_user.expects(:is_admin?).returns(false) @controller.send(:authorize_admin) assert_access_denied end |