Skip to content

Commit 753afc2

Browse files
committed
shorten long line of JournalsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20119 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 2b9796d commit 753afc2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/functional/journals_controller_test.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,17 @@ def test_index_should_show_visible_custom_fields_only
9999
}
100100
@fields.each_with_index do |field, i|
101101
if visible_fields.include?(field)
102-
assert_select "content[type=html]", { :text => /NewValue#{i}/, :count => 1 }, "User #{user.id} was not able to view #{field.name} in API"
102+
assert_select(
103+
"content[type=html]",
104+
{:text => /NewValue#{i}/, :count => 1},
105+
"User #{user.id} was not able to view #{field.name} in API"
106+
)
103107
else
104-
assert_select "content[type=html]", { :text => /NewValue#{i}/, :count => 0 }, "User #{user.id} was able to view #{field.name} in API"
108+
assert_select(
109+
"content[type=html]",
110+
{:text => /NewValue#{i}/, :count => 0},
111+
"User #{user.id} was able to view #{field.name} in API"
112+
)
105113
end
106114
end
107115
end

0 commit comments

Comments
 (0)