module Mocha::Hooks

def mocha_setup

This method should be called before each individual test starts (including before any "setup" code).

Prepares Mocha before a test (only for use by authors of test libraries).
def mocha_setup
  Mockery.setup
end

def mocha_teardown(origin = mocha_test_name)

This method should be called after each individual test has finished (including after any "teardown" code).

Resets Mocha after a test (only for use by authors of test libraries).
def mocha_teardown(origin = mocha_test_name)
  Mockery.teardown(origin)
end

def mocha_test_name

to help track down potential bugs.
Returns a string representing the unit test name, to be included in some Mocha
def mocha_test_name
  nil
end

def mocha_verify(assertion_counter = nil)

This method should be called at the end of each individual test, before it has been determined whether or not the test has passed.

This is equivalent to a series of "assertions".

Verifies that all mock expectations have been met (only for use by authors of test libraries).
def mocha_verify(assertion_counter = nil)
  Mockery.verify(assertion_counter)
end