add test of datepicker in Simplified Chinese and Traditional Chinese (#13579)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11685 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-03-25 11:46:41 +00:00
parent 3f2982ede6
commit 213e8facee
1 changed files with 10 additions and 0 deletions

View File

@ -85,6 +85,16 @@ class LayoutTest < ActionController::IntegrationTest
get '/issues' get '/issues'
assert_not_include "/javascripts/i18n/jquery.ui.datepicker", response.body assert_not_include "/javascripts/i18n/jquery.ui.datepicker", response.body
end 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 end
def test_search_field_outside_project_should_link_to_global_search def test_search_field_outside_project_should_link_to_global_search