diff options
author | Azul <azul@riseup.net> | 2016-05-21 06:48:31 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-21 06:48:31 +0200 |
commit | da00a2068ae8b6129384f06baafdc039bdaab003 (patch) | |
tree | 2e1d83458da972498679b87d9bce7e56a200c0f6 /test/integration | |
parent | f20ecdfb249128ba79da069407dce32f6f7e2fca (diff) |
tests: reset I18n.locale after locale_path_test
Otherwise this will mess up other tests.
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/locale_path_test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/integration/locale_path_test.rb b/test/integration/locale_path_test.rb index 738e7f5..22293dc 100644 --- a/test/integration/locale_path_test.rb +++ b/test/integration/locale_path_test.rb @@ -21,6 +21,11 @@ require 'test_helper' # class LocalePathTest < ActionDispatch::IntegrationTest + + teardown do + I18n.locale = 'en' + end + test "redirect if accept-language is not default locale" do get_via_redirect '/', {}, 'HTTP_ACCEPT_LANGUAGE' => 'de' assert_equal '/de', path @@ -55,4 +60,4 @@ class LocalePathTest < ActionDispatch::IntegrationTest @controller.send(:default_url_options) end -end
\ No newline at end of file +end |