From da00a2068ae8b6129384f06baafdc039bdaab003 Mon Sep 17 00:00:00 2001 From: Azul Date: Sat, 21 May 2016 06:48:31 +0200 Subject: tests: reset I18n.locale after locale_path_test Otherwise this will mess up other tests. --- test/integration/locale_path_test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/integration/locale_path_test.rb') 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 -- cgit v1.2.3