module FlexMock::GenericTestCase

Public Class Methods

define_extensions_on(klass) click to toggle source
# File lib/flexmock/test_unit.rb, line 16
def self.define_extensions_on(klass)
  klass.class_eval do
    include FlexMock::ArgumentTypes
    include FlexMock::MockContainer

    # Alias the original teardown behavior for later use.
    alias :flexmock_original_teardown :teardown

    # Teardown the test case, verifying any mocks that might have been
    # defined in this test case.
    def teardown
      flexmock_teardown
      flexmock_original_teardown
    end
  end
end

Public Instance Methods

teardown() click to toggle source

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

# File lib/flexmock/test_unit.rb, line 26
def teardown
  flexmock_teardown
  flexmock_original_teardown
end