summaryrefslogtreecommitdiffstats
path: root/test/functional/calendars_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-10 11:11:02 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-10 11:11:02 +0000
commite703e3851fe5e715678bc196b53c89e2b41181a0 (patch)
treec3b462e6fc8f15edd246f8d52fc616656986a813 /test/functional/calendars_controller_test.rb
parent6f5c23c6e3094704226512b318b2598e5d2c64ed (diff)
downloadredmine-e703e3851fe5e715678bc196b53c89e2b41181a0.tar.gz
redmine-e703e3851fe5e715678bc196b53c89e2b41181a0.zip
add cross project version calendar functional test
git-svn-id: http://svn.redmine.org/redmine/trunk@20333 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/calendars_controller_test.rb')
-rw-r--r--test/functional/calendars_controller_test.rb22
1 files changed, 22 insertions, 0 deletions
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(