diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-06-21 17:28:24 -0400 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-06-21 21:28:30 +0000 |
| commit | 39a40af14f04b5aad238323972c3fdea7dddad2b (patch) | |
| tree | 4b1e5dd2b0567e8e6eaffebe90fed9dd265ab5f1 | |
| parent | 51ff9cd7473afcdb45ad49dcd292bb6818057509 (diff) | |
[ruby/yarp] Truly fix snapshot testing on Ruby CI
https://github.com/ruby/yarp/commit/c4e835711e
| -rw-r--r-- | test/yarp/parse_test.rb | 3 |
1 files changed, 1 insertions, 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. |
