diff options
author | Azul <azul@leap.se> | 2014-02-06 12:08:15 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-02-06 13:05:55 +0100 |
commit | e96d21ed7d2fce1d07fc381200d31919a2d93299 (patch) | |
tree | e55983a2e7c1b64659f12b2e592c02bed5048d36 /test/test_helper.rb | |
parent | c32b55caa141d02dab65df16bc3f2149c04603e5 (diff) |
integration test with en-EN language
Tests fail on machines that default to other available languages.
Also move setting capybara driver to be javascript driver into the BrowserIntegrationTest.
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 3e301e7..1dff80a 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -43,6 +43,11 @@ class BrowserIntegrationTest < ActionDispatch::IntegrationTest include Capybara::DSL include IntegrationTestHelper + setup do + Capybara.current_driver = Capybara.javascript_driver + page.driver.add_headers 'ACCEPT-LANGUAGE' => 'en-EN' + end + teardown do Capybara.reset_sessions! # Forget the (simulated) browser state Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver |