Similarly to how there is config_override to override configuration options, we should also add a time_zone_override for setting Time.zone locally for a test to avoid this code:
before do # if this is actually your time zone, the following tests are useless Time.zone = "Stockholm" end after do Time.zone = nil end
- is related to
-
MONGOID-5438 Implement local override for i18n parameters
- Closed
- related to
-
MONGOID-5261 Use config_override when a test requires a certain configuration option value
- Closed