comparison test/integration/layout_test.rb @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children e248c7af89ec
comparison
equal deleted inserted replaced
1297:0a574315af3e 1298:4f746d8966dd
1 # Redmine - project management software 1 # Redmine - project management software
2 # Copyright (C) 2006-2012 Jean-Philippe Lang 2 # Copyright (C) 2006-2013 Jean-Philippe Lang
3 # 3 #
4 # This program is free software; you can redistribute it and/or 4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License 5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2 6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version. 7 # of the License, or (at your option) any later version.
22 :enumerations, :users, :issue_categories, 22 :enumerations, :users, :issue_categories,
23 :projects_trackers, 23 :projects_trackers,
24 :roles, 24 :roles,
25 :member_roles, 25 :member_roles,
26 :members, 26 :members,
27 :enabled_modules, 27 :enabled_modules
28 :workflows
29 28
30 test "browsing to a missing page should render the base layout" do 29 test "browsing to a missing page should render the base layout" do
31 get "/users/100000000" 30 get "/users/100000000"
32 31
33 assert_response :not_found 32 assert_response :not_found
84 83
85 with_settings :default_language => 'en' do 84 with_settings :default_language => 'en' do
86 get '/issues' 85 get '/issues'
87 assert_not_include "/javascripts/i18n/jquery.ui.datepicker", response.body 86 assert_not_include "/javascripts/i18n/jquery.ui.datepicker", response.body
88 end 87 end
88
89 with_settings :default_language => 'zh' do
90 get '/issues'
91 assert_include "/javascripts/i18n/jquery.ui.datepicker-zh-CN.js", response.body
92 end
93
94 with_settings :default_language => 'zh-TW' do
95 get '/issues'
96 assert_include "/javascripts/i18n/jquery.ui.datepicker-zh-TW.js", response.body
97 end
98
99 with_settings :default_language => 'pt' do
100 get '/issues'
101 assert_include "/javascripts/i18n/jquery.ui.datepicker-pt.js", response.body
102 end
103
104 with_settings :default_language => 'pt-BR' do
105 get '/issues'
106 assert_include "/javascripts/i18n/jquery.ui.datepicker-pt-BR.js", response.body
107 end
89 end 108 end
90 109
91 def test_search_field_outside_project_should_link_to_global_search 110 def test_search_field_outside_project_should_link_to_global_search
92 get '/' 111 get '/'
93 assert_select 'div#quick-search form[action=/search]' 112 assert_select 'div#quick-search form[action=/search]'