Sha256: 20e452f502e8328c1ad323d2007df8a1f5c9e35bcf9a9bb65bdd60c6e43ab5c9

Contents?: true

Size: 456 Bytes

Versions: 147

Compression:

Stored size: 456 Bytes

Contents

require 'test/unit'
require 'webmock'

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

147 entries across 145 versions & 12 rubygems

Version Path
cloudsmith-api-0.49.94 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
cloudsmith-api-0.49.21 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
cloudsmith-api-0.49.15 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
cloudsmith-api-0.49.13 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
cloudsmith-api-0.21.4 vendor/bundle/ruby/2.3.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/webmock-1.21.0/lib/webmock/test_unit.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/webmock-1.21.0/lib/webmock/test_unit.rb
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/webmock-1.24.6/lib/webmock/test_unit.rb