]> source.dussan.org Git - redmine.git/commitdiff
remove start date assertion from CalendarsControllerTest#test_show
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:06:47 +0000 (13:06 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:06:47 +0000 (13:06 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20256 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/calendars_controller_test.rb

index d83755c7160a022cf6b9a5f61c2102f25008e41c..5e68e35568cfa0a95b44ef9fe565b90dc4a0f553 100644 (file)
@@ -38,8 +38,7 @@ 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
-    date = issues(:issues_002).start_date
-    travel_to date
+    travel_to issues(:issues_002).start_date
 
     with_settings :gravatar_enabled => '1' do
       get(
@@ -69,8 +68,8 @@ class CalendarsControllerTest < Redmine::ControllerTest
       assert_select 'tr' do
         assert_select 'td' do
           assert_select(
-            'p.day-num ~ div.issue.hascontextmenu.tooltip.starting',
-            :text => /#{date.day}.*Add ingredients categories/
+            '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