summaryrefslogtreecommitdiff
path: root/users/test/support/auth_test_helper.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-17 10:36:13 +0100
committerAzul <azul@leap.se>2012-12-17 10:36:13 +0100
commitd64ab283b7bce0d296bb743f030c5361af663456 (patch)
treed3979c63f555e7076799f9fd0277c72ca5a8d01e /users/test/support/auth_test_helper.rb
parent842845abffda2cf9abe38bac48d5c4b7cf3714b5 (diff)
parentff9d29df260b29a1c20441e25e2fc3fdf9ee1fb3 (diff)
Merge branch 'master' into develop
Diffstat (limited to 'users/test/support/auth_test_helper.rb')
-rw-r--r--users/test/support/auth_test_helper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/users/test/support/auth_test_helper.rb b/users/test/support/auth_test_helper.rb
index 6a82f24..c9f5612 100644
--- a/users/test/support/auth_test_helper.rb
+++ b/users/test/support/auth_test_helper.rb
@@ -1,5 +1,4 @@
module AuthTestHelper
- include StubRecordHelper
extend ActiveSupport::Concern
# Controller will fetch current user from warden.
@@ -24,7 +23,7 @@ module AuthTestHelper
assert_equal({:alert => "Not authorized"}, flash.to_hash)
# todo: eventually probably eliminate separate conditions
assert_redirected_to login_path if !logged_in
- assert_redirected_to root_path if logged_in
+ assert_redirected_to root_path if logged_in
else
assert flash[:alert].blank?
end