Sha256: 9a15d7a8b68b0fee2de7d0aeffd69915ddc3f6530303ec4e8a81aa39cafe533e

Contents?: true

Size: 803 Bytes

Versions: 22

Compression:

Stored size: 803 Bytes

Contents

#!/usr/bin/env ruby

#---
# Copyright 2003, 2004, 2005, 2006, 2007 by Jim Weirich (jim@weirichhouse.org).
# All rights reserved.

# Permission is granted for use, copying, modification, distribution,
# and distribution of modified versions of this work as long as the
# above copyright notice is included.
#+++

require 'flexmock/test_unit_integration'

module Test
  module Unit
    class TestCase
      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
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
flexmock-0.8.11 lib/flexmock/test_unit.rb
flexmock-0.8.10 lib/flexmock/test_unit.rb
flexmock-0.8.9 lib/flexmock/test_unit.rb
flexmock-0.8.8 lib/flexmock/test_unit.rb
flexmock-0.8.7 lib/flexmock/test_unit.rb
flexmock-0.6.3 lib/flexmock/test_unit.rb
flexmock-0.6.4 lib/flexmock/test_unit.rb
flexmock-0.7.0 lib/flexmock/test_unit.rb
flexmock-0.8.1 lib/flexmock/test_unit.rb
flexmock-0.6.0 lib/flexmock/test_unit.rb
flexmock-0.6.2 lib/flexmock/test_unit.rb
flexmock-0.6.1 lib/flexmock/test_unit.rb
flexmock-0.7.1 lib/flexmock/test_unit.rb
flexmock-0.8.0 lib/flexmock/test_unit.rb
flexmock-0.8.6 lib/flexmock/test_unit.rb
flexmock-0.8.3 lib/flexmock/test_unit.rb
flexmock-0.8.4 lib/flexmock/test_unit.rb
flexmock-0.8.5 lib/flexmock/test_unit.rb
flexmock-0.8.2 lib/flexmock/test_unit.rb
mack-0.8.2 lib/gems/flexmock-0.8.3/lib/flexmock/test_unit.rb