Similarly to https://jira.mongodb.org/browse/MONGOID-5261 for config options and https://jira.mongodb.org/browse/MONGOID-5262 for time zones, we should have a macro that performs local overrides for i18n-related parameters.
As shown in https://github.com/mongodb/mongoid/pull/5402/files, there are several:
config.before(:each) do I18n.locale = :en I18n.default_locale = :en I18n.fallbacks = [] I18n.enforce_available_locales = false end
- is duplicated by
-
MONGOID-5455 Fix current I18n related test failures
- Closed
- is related to
-
MONGOID-5469 Document Mongoid's reliance on existence of I18n.fallbacks to mean fallbacks are enabled
- Backlog
-
MONGOID-5437 Extract fallback enabling logic into macro
- Closed
- related to
-
MONGOID-5261 Use config_override when a test requires a certain configuration option value
- Closed
-
MONGOID-5262 Implement local time zone override for tests
- Closed