Skip to content

Commit 7cdb940

Browse files
Repair failing tests after json update
Either json 2.6.1 or File.write seems to append an additional \n at the end of the parsed results.json. Thus, both assertion argument need to be treated the same now.
1 parent d9ac065 commit 7cdb940

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_runner_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_syntax_errors_in_tests
108108
,'This is meant to be a syntax...
109109
^
110110
SYNTAX_ERRORS
111-
assert_equal expected.strip, actual['message']
111+
assert_equal expected, actual['message']
112112

113113
assert_test_run_exited_cleanly
114114
end
@@ -124,7 +124,7 @@ def test_syntax_errors_in_code
124124
end,A stray comma
125125
^
126126
SYNTAX_ERRORS
127-
assert_equal expected.strip, actual['message']
127+
assert_equal expected, actual['message']
128128

129129
assert_test_run_exited_cleanly
130130
end

0 commit comments

Comments
 (0)