ruby-changes:41174
From: nobu <ko1@a...>
Date: Wed, 23 Dec 2015 01:41:53 +0900 (JST)
Subject: [ruby-changes:41174] nobu:r53246 (trunk): test_rdoc_generator_json_index.rb: open in binmode
nobu 2015-12-23 01:41:34 +0900 (Wed, 23 Dec 2015) New Revision: 53246 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53246 Log: 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. Modified files: trunk/test/rdoc/test_rdoc_generator_json_index.rb Index: test/rdoc/test_rdoc_generator_json_index.rb =================================================================== --- test/rdoc/test_rdoc_generator_json_index.rb (revision 53245) +++ test/rdoc/test_rdoc_generator_json_index.rb (revision 53246) @@ -153,7 +153,7 @@ class TestRDocGeneratorJsonIndex < RDoc: https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_generator_json_index.rb#L153 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 } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/