From 1e6aa53be9876bb6b118f65cdc9e526634566c6c Mon Sep 17 00:00:00 2001 From: Igor Alexandrov Date: Wed, 3 Oct 2018 12:06:45 +0300 Subject: [PATCH] Fixed I18n fallback issue --- spec/integration/messages/i18n_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/integration/messages/i18n_spec.rb b/spec/integration/messages/i18n_spec.rb index e2456e5d..a93954ab 100644 --- a/spec/integration/messages/i18n_spec.rb +++ b/spec/integration/messages/i18n_spec.rb @@ -76,12 +76,14 @@ context 'fallbacking to I18n.default_locale with fallback backend config' do before do require "i18n/backend/fallbacks" + + # https://github.com/svenfuchs/i18n/pull/415 + # Since I18n does not provide default fallbacks anymore, we have to do this explicitly I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) + I18n.fallbacks = I18n::Locale::Fallbacks.new(:en) end it 'returns a message for a predicate in the default_locale' do - pending "i18n fallback API changed, so this spec started failing" - message = messages[:even?, path: :some_number] expect(I18n.locale).to eql(:pl)