Skip to content

Commit 46aa46d

Browse files
committed
Read ASCII-incompatible strings in binary mode
1 parent 004a5c1 commit 46aa46d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/json/json_minefield_parser_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def define_test(name, &block)
7878
end
7979

8080
fixtures.each do |path|
81-
payload = File.read(path)
81+
payload = File.binread(path)
8282
name = File.basename(path, '.json')
8383

8484
if COMMENT_TESTS.include?(name)
@@ -111,4 +111,4 @@ def define_test(name, &block)
111111
raise "Unexpected minefield test: #{name}"
112112
end
113113
end
114-
end
114+
end

0 commit comments

Comments
 (0)