Sha256: 92f370cd0ba753c29b88a841c6d80b9a9c1b6526c2250b13ed0f936052f8bf03

Contents?: true

Size: 473 Bytes

Versions: 39

Compression:

Stored size: 473 Bytes

Contents

require 'test/unit'
require 'webmock'

WebMock.enable!

module Test
  module Unit
    class TestCase
      include WebMock::API

      alias_method :teardown_without_webmock, :teardown
      def teardown_with_webmock
        teardown_without_webmock
        WebMock.reset!
      end
      alias_method :teardown, :teardown_with_webmock

    end
  end
end

WebMock::AssertionFailure.error_class = Test::Unit::AssertionFailedError rescue MiniTest::Assertion # ruby1.9 compat

Version data entries

39 entries across 33 versions & 4 rubygems

Version Path
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/webmock-2.3.2/lib/webmock/test_unit.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/webmock-2.3.2/lib/webmock/test_unit.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/webmock-2.3.2/lib/webmock/test_unit.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/webmock-2.3.2/lib/webmock/test_unit.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/webmock-2.3.2/lib/webmock/test_unit.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/webmock-2.3.2/lib/webmock/test_unit.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/webmock-2.3.2/lib/webmock/test_unit.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/webmock-2.3.2/lib/webmock/test_unit.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/webmock-2.3.2/lib/webmock/test_unit.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/webmock-2.3.2/lib/webmock/test_unit.rb
webmock-2.3.2 lib/webmock/test_unit.rb
webmock-2.2.0 lib/webmock/test_unit.rb
webmock-2.1.0 lib/webmock/test_unit.rb
webmock-2.0.3 lib/webmock/test_unit.rb
webmock-2.0.2 lib/webmock/test_unit.rb
webmock-2.0.1 lib/webmock/test_unit.rb
webmock-2.0.0 lib/webmock/test_unit.rb
webmock-2.0.0.beta2 lib/webmock/test_unit.rb
webmock-2.0.0.beta1 lib/webmock/test_unit.rb