X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4d73706ff349e043ca62612e977ae600e8cae4ad..433b7c5dfae0afa72058c2aaf236859998a2175a:/test/controllers/user_controller_test.rb diff --git a/test/controllers/user_controller_test.rb b/test/controllers/user_controller_test.rb index eb57e2689..95eccb2c5 100644 --- a/test/controllers/user_controller_test.rb +++ b/test/controllers/user_controller_test.rb @@ -3,8 +3,8 @@ 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") + def setup + stub_hostip_requests end ## @@ -1384,7 +1384,7 @@ class UserControllerTest < ActionController::TestCase get :list, :page => 3 assert_response :success assert_template :list - assert_select "table#user_list tr", :count => 25 + assert_select "table#user_list tr", :count => 26 end def test_list_post_confirm