From ea5503cbfc7c948d32cc1ad820b1f7719f6955bb Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Wed, 25 Dec 2013 16:52:20 +0100 Subject: [PATCH] Update the Minitest version to ~> 5.0 Let the users relying on RDoc::TestCase use a more up to date version of Minitest. --- Rakefile | 4 ++-- lib/rdoc/test_case.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 39dd41c998..6173ad814d 100644 --- a/Rakefile +++ b/Rakefile @@ -64,14 +64,14 @@ Depending on your version of ruby, you may need to install ruby rdoc/ri data: require_ruby_version '>= 1.8.7' extra_deps << ['json', '~> 1.4'] extra_dev_deps << ['racc', '~> 1.4', '!= 1.4.10'] - extra_dev_deps << ['minitest', '~> 4'] + extra_dev_deps << ['minitest', '~> 5'] extra_rdoc_files << 'Rakefile' spec_extras['required_rubygems_version'] = '>= 1.3' spec_extras['homepage'] = 'http://docs.seattlerb.org/rdoc' end -hoe.test_prelude = 'gem "minitest", "~> 4.0"' +hoe.test_prelude = 'gem "minitest", "~> 5.0"' def rake(*args) sh $0, *args diff --git a/lib/rdoc/test_case.rb b/lib/rdoc/test_case.rb index 245e4ef1c5..0af9fffcdd 100644 --- a/lib/rdoc/test_case.rb +++ b/lib/rdoc/test_case.rb @@ -1,7 +1,7 @@ require 'rubygems' begin - gem 'minitest', '~> 4.0' unless defined?(Test::Unit) + gem 'minitest', '~> 5.0' unless defined?(Test::Unit) rescue NoMethodError # for ruby tests end @@ -30,7 +30,7 @@ # * @pwd containing the current working directory # * FileUtils, pp, Tempfile, Dir.tmpdir and StringIO -class RDoc::TestCase < MiniTest::Unit::TestCase +class RDoc::TestCase < Minitest::Test ## # Abstract test-case setup