summaryrefslogtreecommitdiff
path: root/spec/bundler/commands
diff options
context:
space:
mode:
authorYuji Yaginuma <yuuji.yaginuma@gmail.com>2023-12-08 11:10:14 +0900
committergit <svn-admin@ruby-lang.org>2023-12-08 03:25:43 +0000
commit8bb90f4d771d287644a3cf21bdda26c637f091e2 (patch)
tree6af73dc91fa2046535243615f555f361bee84c37 /spec/bundler/commands
parentac5fd58700b5576bfdd89ffe06dd4302b6721e5f (diff)
[rubygems/rubygems] Use `Minitest::TestTask` in a template file for `minitest`
`minitest` has introduced a rake task for running test on 5.16.0. https://github.com/minitest/minitest/blob/master/History.rdoc#5160--2022-06-14- This has some tasks related to running tests and it's useful for `minitest` user I think. https://github.com/minitest/minitest#rake-tasks- This PR changed to use the task in a template file for `minitest` https://github.com/rubygems/rubygems/commit/7a86d13062
Diffstat (limited to 'spec/bundler/commands')
-rw-r--r--spec/bundler/commands/newgem_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/bundler/commands/newgem_spec.rb b/spec/bundler/commands/newgem_spec.rb
index cef9c2a646..08e28d0cfa 100644
--- a/spec/bundler/commands/newgem_spec.rb
+++ b/spec/bundler/commands/newgem_spec.rb
@@ -801,13 +801,9 @@ RSpec.describe "bundle gem" do
# frozen_string_literal: true
require "bundler/gem_tasks"
- require "rake/testtask"
+ require "minitest/test_task"
- Rake::TestTask.new(:test) do |t|
- t.libs << "test"
- t.libs << "lib"
- t.test_files = FileList["test/**/test_*.rb"]
- end
+ Minitest::TestTask.create
task default: :test
RAKEFILE