| Module | FlexMock::TestCase |
| In: |
lib/flexmock.rb
|
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, mocks may be created with a simple call to the flexmock method. Mocks created with via the method call will automatically be verified in the teardown of the test case.
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.
Create a FlexMock object with the given name. Mocks created with this method will be automatically verify during teardown (assuming the the flexmock teardown isn’t overridden).