Class: WebTrap::RSpec::Matchers::SendRequest
- Inherits:
-
Object
- Object
- WebTrap::RSpec::Matchers::SendRequest
- Defined in:
- lib/webtrap/rspec/matchers/send_request.rb
Direct Known Subclasses
Instance Method Summary collapse
- #failure_message ⇒ Object
- #matches?(transmission_proc) ⇒ Boolean
- #supports_block_expectations? ⇒ Boolean
- #with_xml(xml) ⇒ Object
Instance Method Details
#failure_message ⇒ Object
12 13 14 |
# File 'lib/webtrap/rspec/matchers/send_request.rb', line 12 def "expected block to send an HTTP request, but nothing was sent out" end |
#matches?(transmission_proc) ⇒ Boolean
7 8 9 10 |
# File 'lib/webtrap/rspec/matchers/send_request.rb', line 7 def matches?(transmission_proc) perform_transmission(transmission_proc) request_sent? end |
#supports_block_expectations? ⇒ Boolean
16 17 18 |
# File 'lib/webtrap/rspec/matchers/send_request.rb', line 16 def supports_block_expectations? true end |
#with_xml(xml) ⇒ Object
20 21 22 |
# File 'lib/webtrap/rspec/matchers/send_request.rb', line 20 def with_xml(xml) SendRequestWithXml.new(xml) end |