]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/oauth_test.rb
Merge remote-tracking branch 'openstreetmap/pull/1367'
[rails.git] / test / integration / oauth_test.rb
index 00a9ae06d50a0e40b6722966f36206a44fb7092c..c10699f2aa1e422d9d37e0c9ec07848a0b08e712 100644 (file)
@@ -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