]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/oauth_test.rb
Stub out requests to hostip.info during tests
[rails.git] / test / integration / oauth_test.rb
index 00a9ae06d50a0e40b6722966f36206a44fb7092c..62eab0deed18d95b291a09b1d1148fa206f6d4a3 100644 (file)
@@ -6,6 +6,10 @@ class OAuthTest < ActionDispatch::IntegrationTest
 
   include OAuth::Helper
 
+  setup do
+    stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
+  end
+
   def test_oauth10_web_app
     client = client_applications(:oauth_web_app)