added failing test for Warden before_failure hooks

This commit is contained in:
Josh Starcher 2010-12-21 07:26:23 +08:00 committed by José Valim
parent 1a2590dc08
commit e95eb93eb7
1 changed files with 10 additions and 0 deletions

View File

@ -81,6 +81,16 @@ class TestHelpersTest < ActionController::TestCase
Warden::Manager._before_logout.pop
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