Class: WebTrap::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- WebTrap::Server
- Defined in:
- lib/webtrap/server.rb
Overview
Base class for creating fake web application to capture outgoing web requests and assert on them.
Descendants of this class are in charge of setting the required rules to correctly intercept the target requests.
Currently it is only used by SendRequestWithXml.
Class Attribute Summary collapse
-
.payload_was_valid ⇒ Object
writeonly
Set whether the payload met the matcher constraints.
-
.request_received ⇒ Object
writeonly
Set whether a request was received at all.
Class Method Summary collapse
-
.payload_was_valid? ⇒ Boolean
Whether the payload met the matcher constraints.
-
.request_received? ⇒ Boolean
Whether a request was received at all.
Class Attribute Details
.payload_was_valid=(value) ⇒ Object (writeonly)
Set whether the payload met the matcher constraints.
20 21 22 |
# File 'lib/webtrap/server.rb', line 20 def payload_was_valid=(value) @payload_was_valid = value end |
.request_received=(value) ⇒ Object (writeonly)
Set whether a request was received at all.
24 25 26 |
# File 'lib/webtrap/server.rb', line 24 def request_received=(value) @request_received = value end |
Class Method Details
.payload_was_valid? ⇒ Boolean
Whether the payload met the matcher constraints.
29 30 31 |
# File 'lib/webtrap/server.rb', line 29 def self.payload_was_valid? @payload_was_valid end |
.request_received? ⇒ Boolean
Whether a request was received at all.
35 36 37 |
# File 'lib/webtrap/server.rb', line 35 def self.request_received? @request_received end |