Class: I18nSimpleBackendHelperMethodsTest

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

Instance Method Summary collapse

Instance Method Details

#setupObject



474
475
476
# File 'lib/vendor/i18n/test/simple_backend_test.rb', line 474

def setup
  @backend = I18n::Backend::Simple.new
end

#test_deep_symbolize_keys_worksObject



478
479
480
481
482
# File 'lib/vendor/i18n/test/simple_backend_test.rb', line 478

def test_deep_symbolize_keys_works
  result = @backend.send :deep_symbolize_keys, 'foo' => {'bar' => {'baz' => 'bar'}}
  expected = {:foo => {:bar => {:baz => 'bar'}}}
  assert_equal expected, result
end