X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e17b89e89fa932673f7dc2cf5a2fd3437ec0eda6..0da97d2d3ca27755c1dde59e3c6fbef79b9dabac:/test/integration/oauth_test.rb?ds=sidebyside 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