2 require "capybara/poltergeist"
4 WebMock.disable_net_connect!(:allow_localhost => true)
6 # Work around weird debian/ubuntu phantomjs
7 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817277
8 # https://github.com/ariya/phantomjs/issues/14376
9 ENV["QT_QPA_PLATFORM"] = "offscreen"
11 class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
12 ActionDispatch::SystemTesting::Server.silence_puma = true
14 driven_by :poltergeist, :screen_size => [1400, 1400]
17 stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1")
18 .to_return(:status => 404)