module Mocha::Integration::Minitest::Adapter

def self.applicable_to?(minitest_version)

Other tags:
    Private: -
def self.applicable_to?(minitest_version)
  Gem::Requirement.new('>= 3.3.0').satisfied_by?(minitest_version)
end

def self.description

Other tags:
    Private: -
def self.description
  'adapter for Minitest gem >= v3.3.0'
end

def self.included(_mod)

Other tags:
    Private: -
def self.included(_mod)
  Mocha::ExpectationErrorFactory.exception_class = ::Minitest::Assertion
end

def after_teardown

Other tags:
    Private: -
def after_teardown
  super
  mocha_teardown
end

def before_setup

Other tags:
    Private: -
def before_setup
  mocha_setup
  super
end

def before_teardown

Other tags:
    Private: -
def before_teardown
  return unless passed?
  assertion_counter = Integration::AssertionCounter.new(self)
  mocha_verify(assertion_counter)
ensure
  super
end

def mocha_test_name

Other tags:
    Private: -
def mocha_test_name
  if respond_to?(:name)
    test_name = name
  elsif respond_to?(:__name__) # Older minitest
    test_name = __name__
  end
  if test_name
    "#{self.class.name}##{test_name}"
  else
    self.class.name
  end
end