summaryrefslogtreecommitdiffstats
path: root/test/integration/layout_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-22 14:43:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-22 14:43:19 +0000
commitcd54e15a8d130ac22eeae91cc600e55d05212153 (patch)
treec640e1b6e491a14124d69ef8fb88aa390d6a17bf /test/integration/layout_test.rb
parent6a2ca5e0342751b6d38a1a05ad25b5c0002d6e46 (diff)
downloadredmine-cd54e15a8d130ac22eeae91cc600e55d05212153.tar.gz
redmine-cd54e15a8d130ac22eeae91cc600e55d05212153.zip
Use JQuery Datepicker (#11445).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10069 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/layout_test.rb')
-rw-r--r--test/integration/layout_test.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb
index d12cdee37..af2c6fb90 100644
--- a/test/integration/layout_test.rb
+++ b/test/integration/layout_test.rb
@@ -71,6 +71,23 @@ class LayoutTest < ActionController::IntegrationTest
:parent => {:tag => 'head'}
end
+ def test_calendar_header_tags
+ with_settings :default_language => 'fr' do
+ get '/issues'
+ assert_include "/javascripts/i18n/jquery.ui.datepicker-fr.js", response.body
+ end
+
+ with_settings :default_language => 'en-GB' do
+ get '/issues'
+ assert_include "/javascripts/i18n/jquery.ui.datepicker-en-GB.js", response.body
+ end
+
+ with_settings :default_language => 'en' do
+ get '/issues'
+ assert_not_include "/javascripts/i18n/jquery.ui.datepicker", response.body
+ end
+ end
+
def test_search_field_outside_project_should_link_to_global_search
get '/'
assert_select 'div#quick-search form[action=/search]'