Reset I18n load path after I18n helper tests

This commit is contained in:
benjamin wil
2022-05-07 19:38:00 -07:00
parent 3f4162e2cc
commit 33ed562d1c
+3 -2
View File
@@ -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 }