1
0
Fork 0
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:
Thomas Walpole 2015-12-15 10:32:24 -08:00
parent f5926f6514
commit 302c4e43bd

View file

@ -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'