]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_roles_test.rb
Extract the hostip.info stubbing into a common method.
[rails.git] / test / integration / user_roles_test.rb
index e228489dd1d2cd06e1f10105da4cb32c03bbf3bd..2613c402cea5988611b970423c8a111ed738d99b 100644 (file)
@@ -4,7 +4,7 @@ class UserRolesTest < ActionDispatch::IntegrationTest
   fixtures :users, :user_roles
 
   setup do
-    stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
+    stub_signup_requests
   end
 
   test "grant" do