]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/oauth_test.rb
Update to leaflet 1.0.3
[rails.git] / test / integration / oauth_test.rb
index e3ca535206749b860cb7e1d4890aef9580b5629d..c10699f2aa1e422d9d37e0c9ec07848a0b08e712 100644 (file)
@@ -6,8 +6,8 @@ class OAuthTest < ActionDispatch::IntegrationTest
 
   include OAuth::Helper
 
-  setup do
-    stub_signup_requests
+  def setup
+    stub_hostip_requests
   end
 
   def test_oauth10_web_app
@@ -333,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