mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
add calendar assertion to CalendarsControllerTest#test_cross_project_calendar
git-svn-id: http://svn.redmine.org/redmine/trunk@20268 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -95,8 +95,23 @@ class CalendarsControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_cross_project_calendar
|
||||
travel_to issues(:issues_002).start_date
|
||||
get :show
|
||||
assert_response :success
|
||||
|
||||
assert_select 'table.cal' do
|
||||
assert_select 'tr' do
|
||||
assert_select 'td' do
|
||||
assert_select(
|
||||
'div.issue.hascontextmenu.tooltip.starting',
|
||||
:text => /eCookbook.*Add ingredients categories/m
|
||||
) do
|
||||
assert_select 'a.issue[href=?]', '/issues/2', :text => 'Feature request #2'
|
||||
assert_select 'input[name=?][type=?][value=?]', 'ids[]', 'checkbox', '2'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_week_number_calculation
|
||||
|
||||
Reference in New Issue
Block a user