lib/webtrap/rspec/matchers.rb in webtrap-0.0.1 vs lib/webtrap/rspec/matchers.rb in webtrap-0.1.0
- old
+ new
@@ -1,18 +1,18 @@
# 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.
+ # Set of matchers available to define expections about outgoing requests.
module Matchers
- # Passes if the block sends any HTTP request.
+ 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 to verify that the request is sent.
+ # The matcher instance to verify that a request is sent.
def send_request
SendRequest.new
end
end
end