test/helper.rb in write_xlsx-0.86.0 vs test/helper.rb in write_xlsx-0.87.0
- old
+ new
@@ -6,11 +6,11 @@
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
-require 'test-unit'
+require 'minitest/autorun'
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'write_xlsx'
require 'stringio'
@@ -24,10 +24,10 @@
def set_default_xf_indices #:nodoc:
@formats.formats.each { |format| format.get_xf_index }
end
end
-class Test::Unit::TestCase
+class Minitest::Test
def setup_dir_var
@test_dir = File.dirname(__FILE__)
@perl_output = File.join(@test_dir, 'perl_output')
@regression_output = File.join(@test_dir, 'regression', 'xlsx_files')
@io = StringIO.new