Class I18nSimpleBackendLoadPathTest
In: vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb
Parent: Test::Unit::TestCase

Methods

Included Modules

I18nSimpleBackendTestSetup

Public Instance methods

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 519
519:   def teardown
520:     I18n.load_path = []
521:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 531
531:   def test_adding_arrays_of_filenames_to_load_path_do_not_break_locale_loading
532:     @backend = I18n::Backend::Simple.new
533:     I18n.load_path << Dir[File.dirname(__FILE__) + '/locale/*.{rb,yml}']
534:     assert_nil backend_get_translations
535:     assert_nothing_raised { @backend.send :init_translations }
536:     assert_not_nil backend_get_translations
537:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 523
523:   def test_nested_load_paths_do_not_break_locale_loading
524:     @backend = I18n::Backend::Simple.new
525:     I18n.load_path = [[File.dirname(__FILE__) + '/locale/en.yml']]
526:     assert_nil backend_get_translations
527:     assert_nothing_raised { @backend.send :init_translations }
528:     assert_not_nil backend_get_translations
529:   end

[Validate]