Skip to content

Commit

Permalink
Revert "Simplify Rakefile"
Browse files Browse the repository at this point in the history
This reverts commit 5e45982.

Reason: Old minitest doesn't support `minitest/test_task` and I would like to support old Ruby versions.
  • Loading branch information
y-yagi committed Aug 14, 2024
1 parent 5e45982 commit 4566758
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4566758

Please sign in to comment.