From 39a40af14f04b5aad238323972c3fdea7dddad2b Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 21 Jun 2023 17:28:24 -0400 Subject: [PATCH] [ruby/yarp] Truly fix snapshot testing on Ruby CI https://github.com/ruby/yarp/commit/c4e835711e --- test/yarp/parse_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/yarp/parse_test.rb b/test/yarp/parse_test.rb index 9ec8c0c581..8ceffb1cc7 100644 --- a/test/yarp/parse_test.rb +++ b/test/yarp/parse_test.rb @@ -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)) + normalized = normalize_printed(File.read(snapshot)) # If the snapshot file exists, but the printed value does not match the # snapshot, then update the snapshot file.