summaryrefslogtreecommitdiff
path: root/users/test/support
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-10-24 20:35:52 +0200
committerAzul <azul@leap.se>2012-10-24 20:35:52 +0200
commit3e0a1a47c0eafb7f9b79e5f2765ea33ce1ad159b (patch)
tree8c69443d15f23b391cdb282f9194d293307c98e4 /users/test/support
parent3ba2e664a26e96a93c8640b57241af6386db361e (diff)
basic admin controller methods and helpers + tests
Diffstat (limited to 'users/test/support')
-rw-r--r--users/test/support/auth_test_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/test/support/auth_test_helper.rb b/users/test/support/auth_test_helper.rb
new file mode 100644
index 0000000..c30421f
--- /dev/null
+++ b/users/test/support/auth_test_helper.rb
@@ -0,0 +1,7 @@
+module AuthTestHelper
+
+ def assert_access_denied
+ assert_equal({:alert => "Not authorized"}, flash.to_hash)
+ assert_redirected_to login_path
+ end
+end