Class I18nSimpleBackendReloadTranslationsTest
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 543
543:   def setup
544:     @backend = I18n::Backend::Simple.new
545:     I18n.load_path = [File.dirname(__FILE__) + '/locale/en.yml']
546:     assert_nil backend_get_translations
547:     @backend.send :init_translations
548:   end

[Source]

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

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 563
563:   def test_reload_translations_uninitializes_translations
564:     @backend.reload!
565:     assert_equal @backend.initialized?, false
566:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 558
558:   def test_reload_translations_unloads_translations
559:     @backend.reload!
560:     assert_nil backend_get_translations
561:   end

[Source]

     # File vendor/rails/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb, line 554
554:   def test_setup
555:     assert_not_nil backend_get_translations
556:   end

[Validate]