Sha256: 72d5c0f593df4e9eb2dd488506fc3b4925d8871335a71a43cbaef3a1e18b4bf1

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true

module WebTrap
  module RSpec
    # Set of matchers available to define expections about outgoing requests.
    module Matchers
      autoload :SendRequest, "webtrap/rspec/matchers/send_request"

      # Passes if the expectation block sends an HTTP request.
      #
      # Constraints to specify the expected request can be chained.
      #
      # @return [SendRequest]
      #   The matcher instance to verify that a request is sent.
      def send_request
        SendRequest.new
      end
    end
  end
end

RSpec.configure do |c|
  c.include WebTrap::RSpec::Matchers
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webtrap-0.1.1 lib/webtrap/rspec/matchers.rb
webtrap-0.1.0 lib/webtrap/rspec/matchers.rb