]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/user_controller_test.rb
Merge remote-tracking branch 'openstreetmap/pull/1375'
[rails.git] / test / controllers / user_controller_test.rb
index eb57e2689c7c059f5b88742a7c6c3104ca9ebc1d..e309b1662b0d49073d23d552e0231cd937331c83 100644 (file)
@@ -3,8 +3,8 @@ require "test_helper"
 class UserControllerTest < ActionController::TestCase
   api_fixtures
 
-  setup do
-    stub_request(:get, "http://api.hostip.info/country.php?ip=0.0.0.0")
+  def setup
+    stub_hostip_requests
   end
 
   ##