Skip to content

Commit

Permalink
Use git version of minitest on Ruby 3.3
Browse files Browse the repository at this point in the history
Otherwise, the minitest used is 5.20.0, which emits a warning
about removal that breaks specs on Ruby 3.3. The issue has
been fixed upstream in minitest, but there has not yet been a new
version released with the fix.
  • Loading branch information
jeremyevans committed Dec 27, 2023
1 parent cd00f5f commit 600b2c4
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .ci.gemfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
source 'http://rubygems.org'

minitest_version = case RUBY_VERSION
when /\A1.8/
'< 5.12'
when /\A1.9/
'< 5.4'
when /\A2.0/
'< 5.6'
when /\A2.1/
'< 5.8'
when /\A2.2/
'< 5.9'
when /\A2.3/
'< 5.10'
when /\A2.4/
'< 5.11'
if RUBY_VERSION >= '3.3'
gem 'minitest', git: 'https://github.com/minitest/minitest'
else
'> 0'
minitest_version = case RUBY_VERSION
when /\a1.8/
'< 5.12'
when /\A1.9/
'< 5.4'
when /\A2.0/
'< 5.6'
when /\A2.1/
'< 5.8'
when /\A2.2/
'< 5.9'
when /\A2.3/
'< 5.10'
when /\A2.4/
'< 5.11'
else
'> 0'
end

gem 'minitest', minitest_version
end
gem 'minitest', minitest_version

gem 'minitest-global_expectations', '>=1.0.1'

if RUBY_VERSION < '2.0'
Expand Down

0 comments on commit 600b2c4

Please sign in to comment.