X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f6695c9079f4eeeecaa796c879868f797f97cd55..ab9aaf7e97b60d3dd8bbbd9867953637c05c0083:/test/integration/oauth_test.rb diff --git a/test/integration/oauth_test.rb b/test/integration/oauth_test.rb index 00a9ae06d..c10699f2a 100644 --- a/test/integration/oauth_test.rb +++ b/test/integration/oauth_test.rb @@ -6,6 +6,10 @@ class OAuthTest < ActionDispatch::IntegrationTest include OAuth::Helper + def setup + stub_hostip_requests + end + def test_oauth10_web_app client = client_applications(:oauth_web_app) @@ -329,7 +333,7 @@ class OAuthTest < ActionDispatch::IntegrationTest assert_not_nil token.created_at assert_nil token.authorized_at assert_nil token.invalidated_at - assert_equal options[:oauth_callback], token.callback_url + assert_equal_allowing_nil options[:oauth_callback], token.callback_url assert_allowed token, client.permissions token