1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_rdoc_generator_json_index.rb: open in binmode

* test/rdoc/test_rdoc_generator_json_index.rb (test_generate_gzipped):
  open a gzipped file in binary mode, since it is binary.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-12-22 16:41:34 +00:00
parent 52c3b2eb2a
commit 08aa1cd167

View file

@ -153,7 +153,7 @@ class TestRDocGeneratorJsonIndex < RDoc::TestCase
assert_file 'js/search_index.js'
assert_file 'js/search_index.js.gz'
json = File.open('js/search_index.js.gz') {|gzip|
json = File.open('js/search_index.js.gz', 'rb') {|gzip|
Zlib::GzipReader.new(gzip).read
}