summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-05-28 17:40:09 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-05-28 17:40:09 +0000
commit3acc94914f21b65c3ae98e0e358802b561b53ae3 (patch)
treec5a0f9cd2ab4f00cef2bbe79dbbddaa5bacead47 /test
parent6a4abab8ce00b5b0cb6e0a161bfedf3366393308 (diff)
downloadredmine-3acc94914f21b65c3ae98e0e358802b561b53ae3.tar.gz
redmine-3acc94914f21b65c3ae98e0e358802b561b53ae3.zip
Link "Last activity" column to project activity page (#40706, #23954).
Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22848 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-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 20cf61382..a21b50b07 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -260,7 +260,10 @@ class ProjectsControllerTest < Redmine::ControllerTest
assert_response :success
end
assert_equal ['Name', 'Description', 'Last activity'], columns_in_list
- assert_select 'tr#project-1 td.last_activity_date', :text => format_time(Journal.find(3).created_on)
+ activity_time = Journal.find(3).created_on
+ assert_select "tr#project-1 td.last_activity_date a[href=?]",
+ project_activity_path(Project.find(1), :from => User.current.time_to_date(activity_time)),
+ :text => format_time(activity_time)
assert_select 'tr#project-4 td.last_activity_date', :text => ''
end