module RSpec::Mocks::MinitestIntegration

def after_teardown

def after_teardown
  super
  # Only verify if there's not already an error. Otherwise
  # we risk getting the same failure twice, since negative
  # expectation violations raise both when the message is
  # unexpectedly received, and also during `verify` (in case
  # the first failure was caught by user code via a
  # `rescue Exception`).
  ::RSpec::Mocks.verify unless failures.any?
ensure
  ::RSpec::Mocks.teardown
end

def before_setup

def before_setup
  ::RSpec::Mocks.setup
  super
end