Module: FlexMock::TestCase
- Includes:
- ArgumentTypes, MockContainer, TestUnitAssertions
- Defined in:
- lib/flexmock/test_unit_integration.rb
Overview
Test::Unit::TestCase Integration.
Include this module in any TestCase class in a Test::Unit test suite to get integration with FlexMock. When this module is included, the mock container methods (e.g. flexmock(), flexstub()) will be available.
Note: If you define a teardown
method in the test case, dont’ forget to invoke the super
method! Failure to invoke super will cause all mocks to not be verified.
Instance Method Summary collapse
-
#teardown ⇒ Object
Teardown the test case, verifying any mocks that might have been defined in this test case.
Methods included from TestUnitAssertions
#assert_spy_called, #assert_spy_not_called
Methods included from SpyDescribers
#append_call_record, #block_description, #describe_calls, #describe_spy, #describe_spy_expectation, #describe_spy_negative_expectation, #spy_description, #times_description
Methods included from MockContainer
#flexmock, #flexmock_close, #flexmock_created_mocks, #flexmock_remember, #flexmock_teardown, #flexmock_verify
Methods included from Ordering
#flexmock_allocate_order, #flexmock_current_order, #flexmock_current_order=, #flexmock_groups, #flexmock_validate_order
Methods included from ArgumentTypes
#any, #ducktype, #eq, #hsh, #on, #optional_proc
Instance Method Details
#teardown ⇒ Object
Teardown the test case, verifying any mocks that might have been defined in this test case.
36 37 38 39 |
# File 'lib/flexmock/test_unit_integration.rb', line 36 def teardown super flexmock_teardown end |