From e703e3851fe5e715678bc196b53c89e2b41181a0 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 10 Nov 2020 11:11:02 +0000 Subject: [PATCH] add cross project version calendar functional test git-svn-id: http://svn.redmine.org/redmine/trunk@20333 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/calendars_controller_test.rb | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index 3e8ddafe6..6e82019ec 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -155,6 +155,28 @@ class CalendarsControllerTest < Redmine::ControllerTest end end + def test_cross_project_calendar_version + travel_to versions(:versions_002).effective_date + + get :show + assert_response :success + + assert_select 'table.cal' do + assert_select 'tr' do + assert_select 'td' do + assert_select( + 'span.icon.icon-package' + ) do + assert_select( + 'a[href=?]', '/versions/2', + :text => 'eCookbook - 1.0' + ) + end + end + end + end + end + def test_week_number_calculation with_settings :start_of_week => 7 do get(