aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-22 16:41:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-22 16:41:34 +0000
commit08aa1cd167d2c95c0059c552b045affbfdb9ec61 (patch)
tree5915ca80cef4c281cd3cbcc9188a04baf2ca0801 /test/rdoc
parent52c3b2eb2afc9b2587dc1530331b9667dfab442b (diff)
downloadruby-08aa1cd167d2c95c0059c552b045affbfdb9ec61.tar.gz
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
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_generator_json_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rdoc/test_rdoc_generator_json_index.rb b/test/rdoc/test_rdoc_generator_json_index.rb
index 13e7850a24..864d1134e4 100644
--- a/test/rdoc/test_rdoc_generator_json_index.rb
+++ b/test/rdoc/test_rdoc_generator_json_index.rb
@@ -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
}