Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jeremyevans
Copy link

Minitest 5.19 broke backwards compatibility and removed the Minitest::Unit::VERSION constant. This uses the Minitest::VERSION constant if the Minitest::Unit::VERSION constant is not available.

Minitest 5.19 broke backwards compatibility and removed the
Minitest::Unit::VERSION constant.  This uses the Minitest::VERSION
constant if the Minitest::Unit::VERSION constant is not available.
dentarg added a commit to Starkast/wikimum that referenced this pull request Aug 17, 2023
Minitest was updated in b311f5e and
5.19 introduced the breaking change minitest/minitest@a2c6c18
explained in minitest/minitest@96a9972

There's qrush/m#108 that would make this change unnecessary
@MonsieurTa
Copy link

Work around is to set MT_COMPAT in environment variable while waiting this merge.

https://my.diffend.io/gems/minitest/5.18.1/5.19.0

@MonsieurTa
Copy link

MonsieurTa commented Oct 9, 2024

Ping

@camallen
Copy link

camallen commented Jan 8, 2025

Looks like this was fixed in fa26cd8.

Updating to the latest 1.6.2+ gem version fixes the issue, this PR can be closed.

@andyw8
Copy link

andyw8 commented Mar 22, 2025

For the benefit of anyone searching for the error text:

/Users/andy/.asdf/installs/ruby/3.4.1/lib/ruby/gems/3.4.0/gems/m-1.6.1/lib/m/frameworks.rb:34:in 'M::Frameworks.minitest_version_major': uninitialized constant Minitest::Unit (NameError)

      defined?(Minitest) ? Minitest::Unit::VERSION.slice(/\d+/) : nil
                                   ^^^^^^

(I confirm that updating to v1.6.2 fixes it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants