Sha256: 5e5e84140301b4948bfd0259b5e1165bf053d6ebe009e505a2f2c6ae2ab43948

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

# frozen_string_literal: true

require "webtrap/rspec/matchers/send_request"
require "webtrap/rspec/matchers/send_request_with_xml"

module WebTrap
  module RSpec
    # WebTrap::RSpec::Matchers provides the set of matchers available to define
    # expections about outgoing requests.
    module Matchers
      # Passes if the block sends any HTTP request.
      #
      # @return [SendRequest]
      #   The matcher to verify that the 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

1 entries across 1 versions & 1 rubygems

Version Path
webtrap-0.0.1 lib/webtrap/rspec/matchers.rb