mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
fix Rails 5 test
This commit is contained in:
parent
f5926f6514
commit
302c4e43bd
1 changed files with 1 additions and 11 deletions
|
@ -612,17 +612,7 @@ class AuthenticationRequestKeysTest < Devise::IntegrationTest
|
|||
|
||||
assert_not warden.authenticated?(:user)
|
||||
end
|
||||
end if Rails.version < '5.0.0'
|
||||
|
||||
test 'invalid request keys raises ActionController::RoutingError' do
|
||||
swap Devise, request_keys: [:unknown_method] do
|
||||
assert_raise ActionController::RoutingError do
|
||||
sign_in_as_user
|
||||
end
|
||||
|
||||
assert_not warden.authenticated?(:user)
|
||||
end
|
||||
end if Rails.version >= '5.0.0'
|
||||
end
|
||||
|
||||
test 'blank request keys cause authentication to abort' do
|
||||
host! 'test.com'
|
||||
|
|
Loading…
Reference in a new issue