X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5ff822083dad8eb52b1a319b271681b5ecefc27d..89f8f7af3539588c234496dd769f9042199bd248:/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