From: Toshi MARUYAMA Date: Sat, 3 Oct 2020 15:37:22 +0000 (+0000) Subject: shorten long line of JournalsControllerTest X-Git-Tag: 4.2.0~698 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=753afc2e2b3e0865f901a952544654e409567216;p=redmine.git shorten long line of JournalsControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20119 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb index b05940a2c..5d59c12a6 100644 --- a/test/functional/journals_controller_test.rb +++ b/test/functional/journals_controller_test.rb @@ -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