Class: I18nChainBackendTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/vendor/i18n/test/backend/chain/chain_test.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



7
8
9
10
11
12
13
14
15
# File 'lib/vendor/i18n/test/backend/chain/chain_test.rb', line 7

def setup
  @first  = backend(:en => { 
    :foo => 'Foo', :formats => { :short => 'short' }, :plural_1 => { :one => '{{count}}' }
  })
  @second = backend(:en => { 
    :bar => 'Bar', :formats => { :long => 'long' }, :plural_2 => { :one => 'one' }
  })
  @chain  = I18n.backend = I18n::Backend::Chain.new(@first, @second)
end