module Mocha::Hooks
def mocha_setup
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)
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(assertion_counter = nil)
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