From 45667581fbcfa30412752e3ef578aa95a56fac79 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Wed, 14 Aug 2024 19:03:43 +0900 Subject: [PATCH] Revert "Simplify `Rakefile`" This reverts commit 5e459821ed9f7040c049ed43b702971842f97cf6. Reason: Old minitest doesn't support `minitest/test_task` and I would like to support old Ruby versions. --- Rakefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index 0ad2f5d..6d704ea 100644 --- a/Rakefile +++ b/Rakefile @@ -1,10 +1,12 @@ -# frozen_string_literal: true - require "bundler/gem_tasks" -require "minitest/test_task" +require "rake/testtask" -Minitest::TestTask.create do |t| +Rake::TestTask.new(:test) do |t| + t.libs << "test" + t.libs << "lib" + t.test_files = FileList['test/**/*_test.rb'] t.verbose = true + t.warning = true end -task default: :test +task :default => :test