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:
parent
52c3b2eb2a
commit
08aa1cd167
@ -153,7 +153,7 @@ class TestRDocGeneratorJsonIndex < RDoc::TestCase
|
|||||||
assert_file 'js/search_index.js'
|
assert_file 'js/search_index.js'
|
||||||
assert_file 'js/search_index.js.gz'
|
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
|
Zlib::GzipReader.new(gzip).read
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user