Merge pull request #2973 from consul/i18n_defensive_spec

[Backport] Fix pluralization spec when using different default locale
This commit is contained in:
Raimond Garcia
2018-10-17 20:26:26 +02:00
committed by GitHub

View File

@@ -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")