Sha256: 680180654dbf25434c60e76733f3955e723306df1dbbf1c44931e8e36e9570ad
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n-0.2.0 | test/i18n_load_path_test.rb |