]> source.dussan.org Git - redmine.git/commitdiff
add test of datepicker in Simplified Chinese and Traditional Chinese (#13579)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Mar 2013 11:46:41 +0000 (11:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Mar 2013 11:46:41 +0000 (11:46 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11685 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/layout_test.rb

index 34a29354c78e29ecf9e353c9d9af77a50f638e7b..557ce4663a6699e6065a21514212496fccfff0ef 100644 (file)
@@ -85,6 +85,16 @@ class LayoutTest < ActionController::IntegrationTest
       get '/issues'
       assert_not_include "/javascripts/i18n/jquery.ui.datepicker", response.body
     end
+
+    with_settings :default_language => 'zh' do
+      get '/issues'
+      assert_include "/javascripts/i18n/jquery.ui.datepicker-zh-CN.js", response.body
+    end
+
+    with_settings :default_language => 'zh-TW' do
+      get '/issues'
+      assert_include "/javascripts/i18n/jquery.ui.datepicker-zh-TW.js", response.body
+    end
   end
 
   def test_search_field_outside_project_should_link_to_global_search