Move the test suite to minitest 6 (#4)

This commit is contained in:
ajay@krishnan.ca
2026-09-09 12:10:53 -07:00
parent 65a44ca150
commit 47c0370588
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ tmp/
.ruby-version .ruby-version
.byebug_history .byebug_history
coverage/ coverage/
vendor/

View File

@@ -35,7 +35,10 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "activesupport", ">= 6.1", "< 9.0" spec.add_runtime_dependency "activesupport", ">= 6.1", "< 9.0"
spec.add_runtime_dependency "marcel", "~> 1.0" spec.add_runtime_dependency "marcel", "~> 1.0"
spec.add_development_dependency "minitest", "~> 5.20" # minitest 6 removed minitest/mock; Object#stub now ships in the extracted
# minitest-mock gem, which the suite uses to stub Net::HTTP, File and Tempfile.
spec.add_development_dependency "minitest", "~> 6.0"
spec.add_development_dependency "minitest-mock", "~> 5.27"
spec.add_development_dependency "rake", "~> 13.0" spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "webmock", "~> 3.20" spec.add_development_dependency "webmock", "~> 3.20"
end end

View File

@@ -4,6 +4,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "opencode-ruby" require "opencode-ruby"
require "minitest/autorun" require "minitest/autorun"
require "minitest/mock"
require "webmock/minitest" require "webmock/minitest"
# Tests run against WebMock-stubbed endpoints; never hit the network. # Tests run against WebMock-stubbed endpoints; never hit the network.