mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user