X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2df3605142e73ef38c1ad307cbbd5437770b8d96..90175c3bdbc1b25eab177dc2d019b86d2854f9a7:/test/controllers/user_controller_test.rb diff --git a/test/controllers/user_controller_test.rb b/test/controllers/user_controller_test.rb index 409a93b4e..ef4bd0fff 100644 --- a/test/controllers/user_controller_test.rb +++ b/test/controllers/user_controller_test.rb @@ -3,6 +3,11 @@ 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") + stub_request(:get, /.*gravatar.com.*d=404/).to_return(:status => 404) + end + ## # test all routes which lead to this controller def test_routes