diff options
Diffstat (limited to 'test/integration/layout_test.rb')
-rw-r--r-- | test/integration/layout_test.rb | 17 |
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]' |