From 33ed562d1c0a172d646c34d9473aba446f847270 Mon Sep 17 00:00:00 2001 From: benjamin wil Date: Sat, 7 May 2022 19:38:00 -0700 Subject: [PATCH] Reset I18n load path after I18n helper tests --- test/gollum/views/test_locale_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/gollum/views/test_locale_helper.rb b/test/gollum/views/test_locale_helper.rb index b82f8607..681dc379 100644 --- a/test/gollum/views/test_locale_helper.rb +++ b/test/gollum/views/test_locale_helper.rb @@ -15,12 +15,13 @@ describe Precious::Views::LocaleHelpers do end def setup - ::I18n.available_locales = [:en, :de] - ::I18n.load_path = Dir[File.expand_path("test/support/locales" + "/*.yml")] + I18n.available_locales = [:en, :de] + I18n.load_path = Dir[File.expand_path("test/support/locales" + "/*.yml")] end def teardown I18n.locale = :en + I18n.load_path = Dir[::File.expand_path("lib/gollum/locales") + "/*.yml"] end let(:dummy_instance) { TestClass.new }