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)
|
assert_not warden.authenticated?(:user)
|
||||||
end
|
end
|
||||||
end if Rails.version < '5.0.0'
|
end
|
||||||
|
|
||||||
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'
|
|
||||||
|
|
||||||
test 'blank request keys cause authentication to abort' do
|
test 'blank request keys cause authentication to abort' do
|
||||||
host! 'test.com'
|
host! 'test.com'
|
||||||
|
|
Loading…
Add table
Reference in a new issue