diff options
author | Azul <azul@leap.se> | 2012-10-24 20:50:40 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-10-24 20:50:40 +0200 |
commit | 2c2a80812818362d0e0c416deefd4aee2787dd9e (patch) | |
tree | bba462c2230d9a50cdd7160b890039c8c33ccbbf /users/test/functional | |
parent | b724d53b36878c96d30676c22ee4e4369dcc37f8 (diff) |
removing duplicate testing of helper_methods
* once tested as helper
* once tested as @controller.send...
Diffstat (limited to 'users/test/functional')
-rw-r--r-- | users/test/functional/application_controller_test.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/users/test/functional/application_controller_test.rb b/users/test/functional/application_controller_test.rb index 4397e1d..69bcb2f 100644 --- a/users/test/functional/application_controller_test.rb +++ b/users/test/functional/application_controller_test.rb @@ -13,25 +13,12 @@ class ApplicationControllerTest < ActionController::TestCase assert_access_denied end - def test_current_user_with_caching - @user = stub_logged_in - assert_equal @user, @controller.send(:current_user) - assert_equal @user, @controller.send(:current_user) # tests caching - end - def test_authorized @user = stub_logged_in @controller.send(:authorize) assert_access_denied(false) end - def test_admin - bool = stub - @user = stub_logged_in - @user.expects(:is_admin?).returns(bool) - assert_equal bool, @controller.send(:admin?) - end - def test_authorize_admin @user = stub_logged_in @user.expects(:is_admin?).returns(false) |