X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/420a7289a0b08eee091f6650c2e83166df3fbe69..84faaaf7950e61b5f87019398aeda0ead8d41c2c:/test/application_system_test_case.rb diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index 0f46ad3ec..60322763e 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.rb @@ -18,4 +18,10 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase .to_return(:status => 404) super(*args) end + + # Phantomjs can pick up browser Accept-Language preferences from your desktop environment. + # We don't want this to happen during the tests! + setup do + page.driver.add_headers("Accept-Language" => "en") + end end