module Mocha::Integration::TestUnit::Adapter

def self.applicable_to?(test_unit_version)

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

def self.description

Other tags:
    Private: -
def self.description
  'adapter for Test::Unit gem >= v2.5.1'
end

def self.included(mod)

Other tags:
    Private: -
def self.included(mod)
  mod.setup :mocha_setup, before: :prepend
  mod.exception_handler(:handle_mocha_expectation_error)
  mod.cleanup after: :append do
    assertion_counter = Integration::AssertionCounter.new(self)
    mocha_verify(assertion_counter)
  end
  mod.teardown :mocha_teardown, after: :append
end

def handle_mocha_expectation_error(exception)

Other tags:
    Private: -
def handle_mocha_expectation_error(exception)
  return false unless exception.is_a?(Mocha::ExpectationError)
  problem_occurred
  add_failure(exception.message, exception.backtrace)
  true
end

def mocha_test_name

Other tags:
    Private: -
def mocha_test_name
  name
end