Skip to content

Added support for Minitest 5. - #253

Closed
dblock wants to merge 1 commit into
codegram:mainfrom
dblock:minitest-5
Closed

dblock wants to merge 1 commit into
codegram:mainfrom
dblock:minitest-5

Conversation

@dblock

@dblock dblock commented Feb 1, 2024 •

Copy link
Copy Markdown

✍️ Description

Adding support for Minitest 5. Looks like namespace has changed.

LMK if this looks right, or whether it makes sense to drop support for minitest 4.x altogether and I'll try to finish this. Will also need to add CI that does both minitest 4 and 5.

✅ Fixes

(optional)

  • Closes #(issue)
  • Fixes #(issue)

✅ QA

Before requesting a review, please make sure that:

  • Preview is working on Netlify, Heroku or similar.
  • Manually check that it's working.
  • Add documentation and tests if needed.

📸 Screenshots

(optional) Please post any relevant screenshots that might help understanding the scope of this functionality.

🔗 Relevant URLs

(optional)

📕Extra Documentation

(optional)

Please include links to any external documentation such as requirements, manuals, etc.

@dblock

dblock commented Nov 21, 2026 •

Copy link
Copy Markdown
Author

Closing this since the project hasn't had a commit or release since 2023. The bug is still real: lib/spinach/frameworks/minitest.rb uses MiniTest::, which Minitest 5.19+ removed. A workaround is to skip spinach/frameworks/minitest and set up Minitest yourself in features/support/env.rb, as hyperclient does:

require 'minitest'
require 'minitest/spec'

Minitest::Spec.new nil if defined?(Minitest::Spec)
Spinach.config[:failure_exceptions] << Minitest::Assertion

class Spinach::FeatureSteps
  include Minitest::Assertions

  attr_accessor :assertions

  def initialize(*args)
    super
    self.assertions = 0
  end
end

This comment was written by an AI (Claude) acting on behalf of @dblock.

@dblock dblock closed this Nov 21, 2026
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.

1 participant