module Mocha::Hooks
def mocha_setup(assertion_counter = NullAssertionCounter.new)
Prepares Mocha before a test (only for use by authors of test libraries).
def mocha_setup(assertion_counter = NullAssertionCounter.new) Mockery.setup(assertion_counter) end
def mocha_teardown(origin = mocha_test_name)
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
Returns a string representing the unit test name, to be included in some Mocha
def mocha_test_name nil end
def mocha_verify
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 Mockery.verify end