]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/page_locale_test.rb
Stub out requests to hostip.info during tests
[rails.git] / test / integration / page_locale_test.rb
index 43810db997885e1815ab20d2d668869649bc322c..60255f66c3849f8bfb2d9c09f316bd05c8f2f6e1 100644 (file)
@@ -5,6 +5,7 @@ class PageLocaleTest < ActionDispatch::IntegrationTest
 
   def setup
     I18n.locale = "en"
+    stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
   end
 
   def teardown