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(
# Assert context menu on issues
assert_select 'form[data-cm-url=?]', '/issues/context_menu'
- assert_select(
- 'div.issue.hascontextmenu.tooltip.starting',
- :text => /Add ingredients categories/
- ) do
- assert_select 'a.issue[href=?]', '/issues/2', :text => 'Feature request #2'
- assert_select 'span.tip' do
- assert_select 'img[class="gravatar"]'
+
+ 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/
+ ) do
+ assert_select 'a.issue[href=?]', '/issues/2', :text => 'Feature request #2'
+ assert_select 'span.tip' do
+ assert_select 'img[class="gravatar"]'
+ end
+ assert_select 'input[name=?][type=?][value=?]', 'ids[]', 'checkbox', '2'
end
- assert_select 'input[name=?][type=?][value=?]', 'ids[]', 'checkbox', '2'
end
end