Some files, for example, spec/mongoid/fields/localized_spec.rb contain this code:
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
This mutates the global state, and accidentally enables fallbacks for all tests which happen to run after that file. Instead, fallbacks should only be (a) enabled for the I18n fallbacks test run and (b) enabled in a manner which reverts state after run.
- related to
-
MONGOID-5438 Implement local override for i18n parameters
- Closed