diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-10-03 15:37:22 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-10-03 15:37:22 +0000 |
commit | 753afc2e2b3e0865f901a952544654e409567216 (patch) | |
tree | b9240e309883e6fb0dd3391a47db579f4cef4280 /test/functional/journals_controller_test.rb | |
parent | 2b9796d4a29a528d6d4a0db38cc0c39afc712026 (diff) | |
download | redmine-753afc2e2b3e0865f901a952544654e409567216.tar.gz redmine-753afc2e2b3e0865f901a952544654e409567216.zip |
shorten long line of JournalsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20119 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/journals_controller_test.rb')
-rw-r--r-- | test/functional/journals_controller_test.rb | 12 |
1 files changed, 10 insertions, 2 deletions
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 |