summaryrefslogtreecommitdiff
path: root/test/support/auth_test_helper.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-26 09:56:11 +0200
committerAzul <azul@leap.se>2014-05-26 09:56:11 +0200
commitf221e5313fe54a2efa127b547916c7c812110449 (patch)
treebd5dfd8997cc4c19f093573acdd68b66e1935b0f /test/support/auth_test_helper.rb
parent00d5adc90ccadc7f4a2a0d54a5a31a1ad02f05be (diff)
fix test to require login
Diffstat (limited to 'test/support/auth_test_helper.rb')
-rw-r--r--test/support/auth_test_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/support/auth_test_helper.rb b/test/support/auth_test_helper.rb
index 57f9f9b..e1961aa 100644
--- a/test/support/auth_test_helper.rb
+++ b/test/support/auth_test_helper.rb
@@ -19,6 +19,10 @@ module AuthTestHelper
return @current_user
end
+ def assert_login_required
+ assert_access_denied(true, false)
+ end
+
def assert_access_denied(denied = true, logged_in = true)
if denied
if @response.content_type == 'application/json'