Skip to content

Commit

Permalink
Merge pull request #7 from igor-alexandrov/master
Browse files Browse the repository at this point in the history
Fixed I18n fallback issue
  • Loading branch information
solnic authored Oct 3, 2018
2 parents 06b623d + 1e6aa53 commit fad1879
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/integration/messages/i18n_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fad1879

Please sign in to comment.