]> source.dussan.org Git - redmine.git/commitdiff
shorten log line at GanttsControllerTest#test_gantt_should_work
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 27 May 2020 01:56:46 +0000 (01:56 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 27 May 2020 01:56:46 +0000 (01:56 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19790 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/gantts_controller_test.rb

index 9b86a8734cef86c34db0930dee9c2a5a2eb473a3..a6be637ca860fe229f33d61aafee1a6cfa55a98b 100644 (file)
@@ -52,8 +52,14 @@ class GanttsControllerTest < Redmine::ControllerTest
         end
         assert_select 'p.contextual' do
           prev_month, next_month = User.current.today.prev_month, User.current.today.next_month
-          assert_select 'a[accesskey="p"][href=?]', project_gantt_path(:project_id => 1, :month => prev_month.month, :year => prev_month.year)
-          assert_select 'a[accesskey="n"][href=?]', project_gantt_path(:project_id => 1, :month => next_month.month, :year => next_month.year)
+          assert_select(
+            'a[accesskey="p"][href=?]',
+            project_gantt_path(:project_id => 1, :month => prev_month.month, :year => prev_month.year)
+          )
+          assert_select(
+            'a[accesskey="n"][href=?]',
+            project_gantt_path(:project_id => 1, :month => next_month.month, :year => next_month.year)
+          )
         end
         assert_select 'p.buttons'
       end