Module: Inferno::DSL::RequestStorage::ClassMethods
- Defined in:
- lib/inferno/dsl/request_storage.rb
Instance Method Summary collapse
-
#makes_request(*identifiers) ⇒ void
Specify the named requests made by a test.
-
#receives_request(identifier) ⇒ void
Specify the name for a request received by a test.
-
#uses_request(*identifiers) ⇒ void
Specify the named requests used by a test.
Instance Method Details
#makes_request(*identifiers) ⇒ void
This method returns an undefined value.
Specify the named requests made by a test
105 106 107 108 109 110 |
# File 'lib/inferno/dsl/request_storage.rb', line 105 def makes_request(*identifiers) named_requests_made.concat(identifiers).uniq! identifiers.each do |identifier| config.add_request(identifier) end end |
#receives_request(identifier) ⇒ void
This method returns an undefined value.
Specify the name for a request received by a test
116 117 118 119 |
# File 'lib/inferno/dsl/request_storage.rb', line 116 def receives_request(identifier) config.add_request(identifier) @incoming_request_name = identifier end |
#uses_request(*identifiers) ⇒ void
This method returns an undefined value.
Specify the named requests used by a test
130 131 132 133 134 135 |
# File 'lib/inferno/dsl/request_storage.rb', line 130 def uses_request(*identifiers) named_requests_used.concat(identifiers).uniq! identifiers.each do |identifier| config.add_request(identifier) end end |