]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_roles_test.rb
Stub out requests to hostip.info during tests
[rails.git] / test / integration / user_roles_test.rb
index 5732430255d8b1703f1e1bfb35e13ca33475607f..e228489dd1d2cd06e1f10105da4cb32c03bbf3bd 100644 (file)
@@ -3,6 +3,10 @@ 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")
+  end
+
   test "grant" do
     check_fail(:grant, :public_user, :moderator)
     check_fail(:grant, :moderator_user, :moderator)