]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_terms_seen_test.rb
Localisation updates from https://translatewiki.net.
[rails.git] / test / integration / user_terms_seen_test.rb
index 596cccc43d79ed9222343898e1376a6bcc23a413..e8d3df07a5618f5812c5d110190ff33ca638f84b 100644 (file)
@@ -3,8 +3,8 @@ 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")
+  def setup
+    stub_hostip_requests
   end
 
   def test_api_blocked