diff options
author | Azul <azul@leap.se> | 2012-12-17 10:18:14 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-17 10:18:14 +0100 |
commit | fa21fe9a5ba10f937cd21e83aa26a088f58e2e8a (patch) | |
tree | dfa6b0e45805561978fb0cce8f6e4a0101a6018b /users/test/support | |
parent | 30f953c06bbd71becfc59afb3fb49abaa853eacc (diff) | |
parent | 6b9ceba75230705a073cf7ba6439c07e29a57be3 (diff) |
Merge branch 'feature/fix-tests-in-master'
Diffstat (limited to 'users/test/support')
-rw-r--r-- | users/test/support/auth_test_helper.rb | 3 | ||||
-rw-r--r-- | users/test/support/stub_record_helper.rb | 4 |
2 files changed, 5 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 diff --git a/users/test/support/stub_record_helper.rb b/users/test/support/stub_record_helper.rb index 2e1a533..1be419a 100644 --- a/users/test/support/stub_record_helper.rb +++ b/users/test/support/stub_record_helper.rb @@ -39,3 +39,7 @@ module StubRecordHelper end end + +class ActionController::TestCase + include StubRecordHelper +end |