Sha256: 8cc8bf70e674c824a00fc03ab23f2ed8b84ed5ac5bcb3fe4f451e1d41c7ae0fb
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
# encoding: utf-8 require File.expand_path(File.dirname(__FILE__) + '/test_helper') class I18nLoadPathTest < Test::Unit::TestCase include Tests::Backend::Simple::Setup::Base def test_nested_load_paths_do_not_break_locale_loading I18n.load_path = [[locales_dir + '/en.yml']] assert_equal "baz", I18n.t(:'foo.bar') end def test_adding_arrays_of_filenames_to_load_path_do_not_break_locale_loading I18n.load_path << Dir[locales_dir + '/*.{rb,yml}'] assert_equal "baz", I18n.t(:'foo.bar') end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
svenfuchs-i18n-0.2.0 | test/i18n_load_path_test.rb |
i18n-0.2.1 | test/i18n_load_path_test.rb |