X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a..9e929de53091ab5db24be602546e525a72548dbd:/test/application_system_test_case.rb diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb new file mode 100644 index 000000000..18d5ec2f7 --- /dev/null +++ b/test/application_system_test_case.rb @@ -0,0 +1,14 @@ +require "test_helper" +require "capybara/poltergeist" + +WebMock.disable_net_connect!(:allow_localhost => true) + +class ApplicationSystemTestCase < ActionDispatch::SystemTestCase + driven_by :poltergeist, :screen_size => [1400, 1400] + + def initialize(*args) + stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1") + .to_return(:status => 404) + super(*args) + end +end