]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of JournalsControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 3 Oct 2020 15:37:22 +0000 (15:37 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 3 Oct 2020 15:37:22 +0000 (15:37 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20119 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/journals_controller_test.rb

index b05940a2ce0400c61af44a4ed7df93ab529fba72..5d59c12a63156b8b2856a0c74182594a8ad13138 100644 (file)
@@ -99,9 +99,17 @@ class JournalsControllerTest < Redmine::ControllerTest
         }
       @fields.each_with_index do |field, i|
         if visible_fields.include?(field)
-          assert_select "content[type=html]", { :text => /NewValue#{i}/, :count => 1 }, "User #{user.id} was not able to view #{field.name} in API"
+          assert_select(
+            "content[type=html]",
+            {:text => /NewValue#{i}/, :count => 1},
+            "User #{user.id} was not able to view #{field.name} in API"
+          )
         else
-          assert_select "content[type=html]", { :text => /NewValue#{i}/, :count => 0 }, "User #{user.id} was able to view #{field.name} in API"
+          assert_select(
+            "content[type=html]",
+            {:text => /NewValue#{i}/, :count => 0},
+            "User #{user.id} was able to view #{field.name} in API"
+          )
         end
       end
     end