Module: ChainSetup

Instance Method Summary collapse

Instance Method Details

#setupObject



7
8
9
10
11
# File 'lib/vendor/i18n/test/backend/chain/api_test.rb', line 7

def setup
  super
  first = I18n::Backend::Simple.new
  I18n.backend = I18n::Backend::Chain.new(first, I18n.backend)
end

#test_using_chain_backendObject



13
14
15
# File 'lib/vendor/i18n/test/backend/chain/api_test.rb', line 13

def test_using_chain_backend
  assert_equal I18n::Backend::Chain, I18n.backend.class
end