Merge pull request #2973 from consul/i18n_defensive_spec
[Backport] Fix pluralization spec when using different default locale
This commit is contained in:
@@ -44,6 +44,7 @@ describe 'I18n' do
|
||||
|
||||
I18n.enforce_available_locales = false
|
||||
I18n.locale = :zz
|
||||
I18n.fallbacks[:zz] << I18n.default_locale
|
||||
|
||||
expect(I18n.t("test_plural", count: 0)).to eq("No comments")
|
||||
expect(I18n.t("test_plural", count: 1)).to eq("1 comment")
|
||||
|
||||
Reference in New Issue
Block a user