test/helper.rb in write_xlsx-0.76.1 vs test/helper.rb in write_xlsx-0.76.2

- old
+ new

@@ -1,12 +1,9 @@ # -*- coding: utf-8 -*- require 'rubygems' -require 'simplecov' if RUBY_VERSION >= "1.9" require 'bundler' -SimpleCov.start if RUBY_VERSION >= "1.9" - begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" @@ -66,11 +63,10 @@ ret.split(/\n/) end def entrys(xlsx) result = [] - ruby_19 { Zip::File.foreach(xlsx) { |entry| result << entry } } || - ruby_18 { Zip::ZipFile.foreach(xlsx) { |entry| result << entry } } + Zip::ZipFile.foreach(xlsx) { |entry| result << entry } result end def compare_xlsx_for_regression(exp_filename, got_filename, ignore_members = nil, ignore_elements = nil) compare_xlsx(exp_filename, got_filename, ignore_members, ignore_elements, true)