Mercurial > hg > soundsoftware-site
annotate .svn/pristine/6d/6d24a0dc5e3b6f9a7f6072591c406a9d6ee664eb.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration
Fix failure to interpret Javascript when autocompleting members for project
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 11 Sep 2014 10:24:38 +0100 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 # Tests in this file ensure that: |
Chris@909 | 2 # |
Chris@909 | 3 # * translations in the application take precedence over those in plugins |
Chris@909 | 4 # * translations in subsequently loaded plugins take precendence over those in previously loaded plugins |
Chris@909 | 5 |
Chris@909 | 6 require File.dirname(__FILE__) + '/../test_helper' |
Chris@909 | 7 |
Chris@909 | 8 class LocaleLoadingTest < ActionController::TestCase |
Chris@909 | 9 def setup |
Chris@909 | 10 @request = ActionController::TestRequest.new |
Chris@909 | 11 @response = ActionController::TestResponse.new |
Chris@909 | 12 end |
Chris@909 | 13 |
Chris@909 | 14 # app takes precedence over plugins |
Chris@909 | 15 |
Chris@909 | 16 def test_WITH_a_translation_defined_in_both_app_and_plugin_IT_should_find_the_one_in_app |
Chris@909 | 17 assert_equal I18n.t('hello'), 'Hello world' |
Chris@909 | 18 end |
Chris@909 | 19 |
Chris@909 | 20 # subsequently loaded plugins take precendence over previously loaded plugins |
Chris@909 | 21 |
Chris@909 | 22 def test_WITH_a_translation_defined_in_two_plugins_IT_should_find_the_latter_of_both |
Chris@909 | 23 assert_equal I18n.t('plugin'), 'beta' |
Chris@909 | 24 end |
Chris@909 | 25 end |
Chris@909 | 26 |