X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6bc488a98397c00b9c6d07480cfb78c2aea729a6..d3d6e9902c8b03fcd31df253cf395f06f757880a:/test/integration/user_roles_test.rb diff --git a/test/integration/user_roles_test.rb b/test/integration/user_roles_test.rb index 573243025..e228489dd 100644 --- a/test/integration/user_roles_test.rb +++ b/test/integration/user_roles_test.rb @@ -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)