Merge remote-tracking branch 'openstreetmap/pull/1030' into next
[rails.git] / test / integration / user_roles_test.rb
index e228489dd1d2cd06e1f10105da4cb32c03bbf3bd..edf1c7c4a9deafc62065e6c41e33c82bb8ed7a46 100644 (file)
@@ -3,8 +3,8 @@ require "test_helper"
 class UserRolesTest < ActionDispatch::IntegrationTest
   fixtures :users, :user_roles
 
-  setup do
-    stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
+  def setup
+    stub_hostip_requests
   end
 
   test "grant" do