Skip to content

Commit

Permalink
Update spec for new behavior of chain backend
Browse files Browse the repository at this point in the history
  • Loading branch information
gburgett committed Mar 7, 2019
1 parent 38a323e commit daa63b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/backend/chain_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,19 @@ def setup
assert !@second.initialized?
end

test 'should be able to get all translations of the first backend' do
test 'should be able to get all translations of all backends merged together' do
assert_equal I18n.backend.send(:translations),
en: {
foo: 'Foo',
bar: 'Bar',
formats: {
short: 'short',
subformats: { short: 'short' }
long: 'long',
subformats: { short: 'short', long: 'long' }
},
plural_1: { one: "%{count}" },
dates: { a: 'A' }
plural_2: { one: 'one' },
dates: { a: 'A', b: 'B' }
}
end

Expand Down

0 comments on commit daa63b4

Please sign in to comment.