Skip to content

Commit e73b0b2

Browse files
committed
refactor: remove unnecessary line breaks and tabs from error and failure content
1 parent cf418ba commit e73b0b2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/test/unit/ui/junitxml/xml.erb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@
55
% test_suite.test_cases.each do |test_case|
66
<testcase classname="<%=h test_case.class_name %>" name="<%=h test_case.name %>" time="<%=h test_case.time %>" assertions="<%=h test_case.assertion_count %>">
77
% if test_case.error
8-
<error message="<%=h test_case.error.message %>" type="<%=h test_case.error.exception.class.name %>">
9-
<%=h test_case.error.long_display %>
10-
</error>
8+
<error message="<%=h test_case.error.message %>" type="<%=h test_case.error.exception.class.name %>"><%=h test_case.error.long_display %></error>
119
% elsif test_case.failure
12-
<failure message="<%=h test_case.failure.message %>">
13-
<%=h test_case.failure.long_display %>
14-
</failure>
10+
<failure message="<%=h test_case.failure.message %>"><%=h test_case.failure.long_display %></failure>
1511
% elsif test_case.omission
1612
<skipped message="<%=h test_case.omission.message %>"/>
1713
% elsif test_case.pending

0 commit comments

Comments
 (0)