Skip to content

Commit 05a2bc3

Browse files
committed
update assertion
1 parent 4b93f2c commit 05a2bc3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/fixtures/console-output.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
| minitest-spec-context | 0 | 0 |
1313
+-----------------------|------------|----------------+
1414

15-
1615
Declared Gems 9
1716
Total Gems 18
1817
Unpinned Versions 6
1918
Github Refs 0
2019

21-
2220
+----------------------+---------+---------+---------+---------+---------+-----+-------+
2321
| Name | Files | Lines | LOC | Classes | Methods | M/C | LOC/M |
2422
+----------------------+---------+---------+---------+---------+---------+-----+-------+

test/lib/rails_stats/code_statistics_test.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
RailsStats::CodeStatistics.new(root_directory).to_s
1515
end
1616

17-
assert_equal table.delete(" \n"), out.delete(" \n")
17+
assert_equal(
18+
table.lines.map(&:rstrip).join,
19+
out.lines.map(&:rstrip).join
20+
)
1821
end
1922
end
2023
end

0 commit comments

Comments
 (0)