Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorder I18n backends in
with_translations
helper
The `with_translations` helper allows translations to be setup for a method under test. A recent change (thoughtbot#772) added a backend chain to ensure this helper won't break other spec by replacing all translations and causing "missing_translations" failures. This changes the order of the I18n backends so that specs will first use the translations provided to the `with_translations` block and then fallback to the default translations. Otherwise, there would be no way to override the default translations in test cases.
- Loading branch information