diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-03 14:56:20 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-03 14:56:20 +0000 |
commit | 576706b6cb72105ee6ff9f34431be128fc974172 (patch) | |
tree | d1e64df9be1054a4bead573f0dbfab34ad621cb4 /test/functional/calendars_controller_test.rb | |
parent | 319e5f3c08829bc8d2d88e4319b0fc24a4072de7 (diff) | |
download | redmine-576706b6cb72105ee6ff9f34431be128fc974172.tar.gz redmine-576706b6cb72105ee6ff9f34431be128fc974172.zip |
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
Diffstat (limited to 'test/functional/calendars_controller_test.rb')
-rw-r--r-- | test/functional/calendars_controller_test.rb | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index d6fc70b5c..c30e3274b 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -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,15 +64,19 @@ class CalendarsControllerTest < Redmine::ControllerTest # 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 |