summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 12:18:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 12:18:15 +0000
commit6319efe95cc1b3746c5c3b57b692632f9c8a1228 (patch)
treef5eb7887ec253072022d14493f991ad54687a6de /test/functional/projects_controller_test.rb
parent49b96a935b3fb34a8cea07b723d9af55a415e13b (diff)
downloadredmine-6319efe95cc1b3746c5c3b57b692632f9c8a1228.tar.gz
redmine-6319efe95cc1b3746c5c3b57b692632f9c8a1228.zip
Test failure (#29482).
git-svn-id: http://svn.redmine.org/redmine/trunk@18768 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 0997ef83c..460752148 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -27,6 +27,8 @@ class ProjectsControllerTest < Redmine::ControllerTest
:attachments, :custom_fields, :custom_values, :time_entries,
:wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
+ include Redmine::I18n
+
def setup
@request.session[:user_id] = nil
Setting.default_language = 'en'
@@ -101,6 +103,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
}
assert_response :success
+ project = Project.find(1)
assert_select 'table.projects' do
assert_select 'tr[id=?]', 'project-1' do
assert_select 'td.name a[href=?]', '/projects/ecookbook', :text => 'eCookbook'
@@ -109,7 +112,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
assert_select 'td.homepage a.external', :text => 'http://ecookbook.somenet.foo/'
assert_select 'td.identifier', :text => 'ecookbook'
assert_select 'td.is_public', :text => 'Yes'
- assert_select 'td.created_on', :text => '07/19/2006 05:13 PM'
+ assert_select 'td.created_on', :text => format_time(project.created_on)
assert_select 'td.project_cf_3.list', :text => 'Stable'
end
assert_select 'tr[id=?]', 'project-4' do