Class: Test::Unit::TestCase

Inherits:
Object
  • Object
show all
Includes:
FlexMock::ArgumentTypes, FlexMock::MockContainer
Defined in:
lib/flexmock/test_unit.rb

Instance Method Summary collapse

Methods included from FlexMock::MockContainer

#flexmock, #flexmock_close, #flexmock_teardown, #flexmock_verify

Methods included from FlexMock::ArgumentTypes

#any, #eq, #on

Instance Method Details

#flexmock_original_teardownObject

Alias the original teardown behavior for later use.



21
# File 'lib/flexmock/test_unit.rb', line 21

alias :flexmock_original_teardown :teardown

#teardownObject

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



25
26
27
28
# File 'lib/flexmock/test_unit.rb', line 25

def teardown
  flexmock_teardown
  flexmock_original_teardown
end