Module: WebTrap::RSpec::Matchers

Defined in:
lib/webtrap/rspec/matchers.rb,
lib/webtrap/rspec/matchers/send_request.rb

Overview

Set of matchers available to define expections about outgoing requests.

Defined Under Namespace

Classes: SendRequest

Instance Method Summary collapse

Instance Method Details

#send_requestSendRequest

Passes if the expectation block sends an HTTP request.

Constraints to specify the expected request can be chained.

Returns:

  • (SendRequest)

    The matcher instance to verify that a request is sent.



15
16
17
# File 'lib/webtrap/rspec/matchers.rb', line 15

def send_request
  SendRequest.new
end