Merge pull request #3601 from consul/fix_globalize_fallbacks

Reset globalize fallbacks before every test
This commit is contained in:
Javier Martín
2019-06-10 15:59:02 +02:00
committed by GitHub

View File

@@ -45,6 +45,9 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = :transaction
I18n.locale = :en
Globalize.locale = I18n.locale
unless %i[controller feature request].include? example.metadata[:type]
Globalize.set_fallbacks_to_all_available_locales
end
load Rails.root.join("db", "seeds.rb").to_s
Setting["feature.user.skip_verification"] = nil
end