File: assertion_failure.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 (13 lines) | stat: -rw-r--r-- 249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module WebMock
  class AssertionFailure
    @error_class = RuntimeError
    class << self
      attr_accessor :error_class
      def failure(message)
        raise @error_class.new(message)
      end
    end
  end
end