added failing test for Warden before_failure hooks
This commit is contained in:
parent
1a2590dc08
commit
e95eb93eb7
|
@ -82,6 +82,16 @@ class TestHelpersTest < ActionController::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
test "before_failer call should work" do
|
||||
Warden::Manager.before_failure do |env,opts|
|
||||
# Do nothing
|
||||
end
|
||||
user = create_user
|
||||
user.confirm!
|
||||
|
||||
sign_in user
|
||||
end
|
||||
|
||||
test "allows to sign in with different users" do
|
||||
first_user = create_user
|
||||
first_user.confirm!
|
||||
|
|
Loading…
Reference in New Issue