Reset I18n load path after I18n helper tests
This commit is contained in:
@@ -15,12 +15,13 @@ describe Precious::Views::LocaleHelpers do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
::I18n.available_locales = [:en, :de]
|
I18n.available_locales = [:en, :de]
|
||||||
::I18n.load_path = Dir[File.expand_path("test/support/locales" + "/*.yml")]
|
I18n.load_path = Dir[File.expand_path("test/support/locales" + "/*.yml")]
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
I18n.locale = :en
|
I18n.locale = :en
|
||||||
|
I18n.load_path = Dir[::File.expand_path("lib/gollum/locales") + "/*.yml"]
|
||||||
end
|
end
|
||||||
|
|
||||||
let(:dummy_instance) { TestClass.new }
|
let(:dummy_instance) { TestClass.new }
|
||||||
|
|||||||
Reference in New Issue
Block a user