summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2023-06-21 17:28:24 -0400
committergit <[email protected]>2023-06-21 21:28:30 +0000
commit39a40af14f04b5aad238323972c3fdea7dddad2b ()
tree4b1e5dd2b0567e8e6eaffebe90fed9dd265ab5f1
parent51ff9cd7473afcdb45ad49dcd292bb6818057509 (diff)
[ruby/yarp] Truly fix snapshot testing on Ruby CI
https://.com/ruby/yarp/commit/c4e835711e
-rw-r--r--test/yarp/parse_test.rb3
1 files changed, 1 insertions, 2 deletions
@@ -21,7 +21,6 @@ class ParseTest < Test::Unit::TestCase
# and the line breaks based on the length of the path.
def normalize_printed(printed)
printed
- .b
.gsub(
/SourceFileNode \s*
\(\s* (\d+\.\.\.\d+) \s*\) \s*
@@ -99,7 +98,7 @@ class ParseTest < Test::Unit::TestCase
assert_empty result.errors, value
if File.exist?(snapshot)
- normalized = normalize_printed(File.binread(snapshot))
# If the snapshot file exists, but the printed value does not match the
# snapshot, then update the snapshot file.