File: test_unit.rb

package info (click to toggle)
ruby-webmock 3.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,172 kB
  • sloc: ruby: 12,829; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 333 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

require 'test/unit'
require 'webmock'

WebMock.enable!

module Test
  module Unit
    class TestCase
      include WebMock::API

      teardown
      def teardown_with_webmock
        WebMock.reset!
      end

    end
  end
end

WebMock::AssertionFailure.error_class = Test::Unit::AssertionFailedError