Class | I18nSimpleBackendAvailableLocalesTest |
In: |
vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb
|
Parent: | Test::Unit::TestCase |
# File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 127 127: def test_available_locales 128: @backend = I18n::Backend::Simple.new 129: @backend.store_translations 'de', :foo => 'bar' 130: @backend.store_translations 'en', :foo => 'foo' 131: 132: assert_equal ['de', 'en'], @backend.available_locales.map{|locale| locale.to_s }.sort 133: end