mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
add start date to assert_select of CalendarsControllerTest#test_show
git-svn-id: http://svn.redmine.org/redmine/trunk@20240 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -38,7 +38,8 @@ class CalendarsControllerTest < Redmine::ControllerTest
|
||||
def test_show
|
||||
# Ensure that an issue to which a user is assigned is in the current
|
||||
# month's calendar in order to test Gravatar
|
||||
travel_to issues(:issues_002).start_date
|
||||
date = issues(:issues_002).start_date
|
||||
travel_to date
|
||||
|
||||
with_settings :gravatar_enabled => '1' do
|
||||
get(
|
||||
@@ -63,6 +64,9 @@ class CalendarsControllerTest < Redmine::ControllerTest
|
||||
|
||||
# Assert context menu on issues
|
||||
assert_select 'form[data-cm-url=?]', '/issues/context_menu'
|
||||
|
||||
assert_select 'table.cal' do
|
||||
assert_select 'p.day-num', :text => date.day.to_s
|
||||
assert_select(
|
||||
'div.issue.hascontextmenu.tooltip.starting',
|
||||
:text => /Add ingredients categories/
|
||||
@@ -74,6 +78,7 @@ class CalendarsControllerTest < Redmine::ControllerTest
|
||||
assert_select 'input[name=?][type=?][value=?]', 'ids[]', 'checkbox', '2'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_show_should_run_custom_queries
|
||||
@query = IssueQuery.create!(:name => 'Calendar Query', :visibility => IssueQuery::VISIBILITY_PUBLIC)
|
||||
|
||||
Reference in New Issue
Block a user