Sha256: a4a7f4b2658b26bd09a5c4dbb325d221094ad99e0b57fd49a6e1666df0155fc2

Contents?: true

Size: 632 Bytes

Versions: 13

Compression:

Stored size: 632 Bytes

Contents

# frozen_string_literal: true

require 'webmock'
require 'webmock/rspec/matchers/request_pattern_matcher'
require 'webmock/rspec/matchers/webmock_matcher'

module WebMock
  module Matchers
    def have_been_made
      WebMock::RequestPatternMatcher.new
    end

    def have_been_requested
      WebMock::RequestPatternMatcher.new
    end

    def have_not_been_made
      WebMock::RequestPatternMatcher.new.times(0)
    end

    def have_requested(method, uri)
      WebMock::WebMockMatcher.new(method, uri)
    end

    def have_not_requested(method, uri)
      WebMock::WebMockMatcher.new(method, uri).times(0)
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/webmock-3.23.1/lib/webmock/rspec/matchers.rb
webmock-3.24.0 lib/webmock/rspec/matchers.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/webmock-3.23.1/lib/webmock/rspec/matchers.rb
webmock-3.23.0 lib/webmock/rspec/matchers.rb
webmock-3.22.0 lib/webmock/rspec/matchers.rb
webmock-3.21.2 lib/webmock/rspec/matchers.rb
webmock-3.21.1 lib/webmock/rspec/matchers.rb
webmock-3.21.0 lib/webmock/rspec/matchers.rb
webmock-3.20.0 lib/webmock/rspec/matchers.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/webmock-3.19.1/lib/webmock/rspec/matchers.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/webmock-3.19.1/lib/webmock/rspec/matchers.rb
webmock-3.19.1 lib/webmock/rspec/matchers.rb
webmock-3.19.0 lib/webmock/rspec/matchers.rb