summaryrefslogtreecommitdiff
path: root/users/test
diff options
context:
space:
mode:
Diffstat (limited to 'users/test')
-rw-r--r--users/test/functional/application_controller_test.rb13
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)