Class: LocaleLoadingTest
- Inherits:
-
ActionController::TestCase
- Object
- ActionController::TestCase
- LocaleLoadingTest
- Defined in:
- vendor/plugins/engines/test/functional/locale_loading_test.rb
Instance Method Summary
- - (Object) setup
-
- (Object) test_WITH_a_translation_defined_in_both_app_and_plugin_IT_should_find_the_one_in_app
app takes precedence over plugins.
-
- (Object) test_WITH_a_translation_defined_in_two_plugins_IT_should_find_the_latter_of_both
subsequently loaded plugins take precendence over previously loaded plugins.
Instance Method Details
- (Object) setup
9 10 11 12 |
# File 'vendor/plugins/engines/test/functional/locale_loading_test.rb', line 9 def setup @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end |
- (Object) test_WITH_a_translation_defined_in_both_app_and_plugin_IT_should_find_the_one_in_app
app takes precedence over plugins
16 17 18 |
# File 'vendor/plugins/engines/test/functional/locale_loading_test.rb', line 16 def test_WITH_a_translation_defined_in_both_app_and_plugin_IT_should_find_the_one_in_app assert_equal I18n.t('hello'), 'Hello world' end |
- (Object) test_WITH_a_translation_defined_in_two_plugins_IT_should_find_the_latter_of_both
subsequently loaded plugins take precendence over previously loaded plugins
22 23 24 |
# File 'vendor/plugins/engines/test/functional/locale_loading_test.rb', line 22 def test_WITH_a_translation_defined_in_two_plugins_IT_should_find_the_latter_of_both assert_equal I18n.t('plugin'), 'beta' end |