]> git.openstreetmap.org Git - rails.git/blob - test/application_system_test_case.rb
Use named paths for messages
[rails.git] / test / application_system_test_case.rb
1 require "test_helper"
2 require "capybara/poltergeist"
3
4 WebMock.disable_net_connect!(:allow_localhost => true)
5
6 class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
7   ActionDispatch::SystemTesting::Server.silence_puma = true
8
9   driven_by :poltergeist, :screen_size => [1400, 1400]
10
11   def initialize(*args)
12     stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
13       .to_return(:status => 404)
14     super(*args)
15   end
16 end