1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-06 09:03:25 +00:00

shorten long line of JournalsControllerTest

git-svn-id: http://svn.redmine.org/redmine/trunk@20119 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-10-03 15:37:22 +00:00
parent 2b9796d4a2
commit 753afc2e2b

View 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