add cross project version calendar functional test

git-svn-id: http://svn.redmine.org/redmine/trunk@20333 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-11-10 11:11:02 +00:00
parent 6f5c23c6e3
commit e703e3851f

View File

@@ -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(