test/helper.rb in fuzzy_match-1.3.3 vs test/helper.rb in fuzzy_match-1.4.0

- old
+ new

@@ -1,12 +1,12 @@ require 'rubygems' require 'bundler' Bundler.setup require 'minitest/spec' require 'minitest/autorun' -require 'minitest/reporters' -MiniTest::Unit.runner = MiniTest::SuiteRunner.new -MiniTest::Unit.runner.reporters << MiniTest::Reporters::SpecReporter.new -$LOAD_PATH.unshift(File.dirname(__FILE__)) -$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) +if RUBY_VERSION >= '1.9' + require 'minitest/reporters' + MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new +end + require 'fuzzy_match'