Skip to content

Conversation

@ekohl
Copy link
Contributor

@ekohl ekohl commented Jun 21, 2025

minitest must be loaded before mocha. Modern minitest also prefers explicit choosing of the test library instead of autodetection.

@stejskalleos
Copy link
Collaborator

Looks like tests are still failing

/home/runner/work/fog-vsphere/fog-vsphere/vendor/bundle/ruby/2.7.0/gems/mocha-2.7.1/lib/mocha/minitest.rb:5:in `<top (required)>': Minitest must be loaded *before* `require 'mocha/minitest'`. (RuntimeError)

@stejskalleos stejskalleos self-assigned this Jun 24, 2025
minitest must be loaded before mocha. Modern minitest also prefers
explicit choosing of the test library instead of autodetection.
@ekohl ekohl force-pushed the correct-minitest-loading branch from a20df43 to cd4fde6 Compare June 24, 2025 13:56
@ekohl
Copy link
Contributor Author

ekohl commented Jun 24, 2025

Ruby head is failing, but Ruby 3.2 would fail in exactly the same way. The gem just isn't compatible with it because CGI dropped some methods there.

@stejskalleos stejskalleos merged commit d256687 into fog:master Jun 30, 2025
4 of 5 checks passed
@stejskalleos
Copy link
Collaborator

thanks @ekohl

@ekohl ekohl deleted the correct-minitest-loading branch June 30, 2025 07:35
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.

2 participants