]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_terms_seen_test.rb
Stub out requests to hostip.info during tests
[rails.git] / test / integration / user_terms_seen_test.rb
index a664feeb0aa13bca045bb7d438aa4dea4a0ad021..596cccc43d79ed9222343898e1376a6bcc23a413 100644 (file)
@@ -3,6 +3,10 @@ require "test_helper"
 class UserTermsSeenTest < ActionDispatch::IntegrationTest
   fixtures :users
 
+  setup do
+    stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
+  end
+
   def test_api_blocked
     with_terms_seen(true) do
       user = users(:terms_not_seen_user)