Module: FlexMock::TestCase

Includes:
ArgumentTypes, MockContainer
Defined in:
lib/gems/flexmock-0.8.3/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

Methods included from MockContainer

#flexmock, #flexmock_close, #flexmock_remember, #flexmock_teardown, #flexmock_verify, #rails_version, #should_render_view

Methods included from Ordering

#flexmock_allocate_order, #flexmock_current_order, #flexmock_current_order=, #flexmock_groups, #flexmock_validate_order

Methods included from ArgumentTypes

#any, #eq, #on

Instance Method Details

#teardownObject

Teardown the test case, verifying any mocks that might have been defined in this test case.



35
36
37
38
# File 'lib/gems/flexmock-0.8.3/lib/flexmock/test_unit_integration.rb', line 35

def teardown
  super
  flexmock_teardown
end