mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
Swap the failure app during the test case properly.
This commit is contained in:
@@ -72,12 +72,9 @@ class TestHelpersTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
test "respects custom failure app" do
|
||||
begin
|
||||
Devise.warden_config.failure_app = CustomFailureApp
|
||||
swap Devise.warden_config, failure_app: CustomFailureApp do
|
||||
get :index
|
||||
assert_response 306
|
||||
ensure
|
||||
Devise.warden_config.failure_app = Devise::FailureApp
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user