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
93 94 95 96 97 98 |
# File 'lib/inferno/dsl/request_storage.rb', line 93 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
104 105 106 107 |
# File 'lib/inferno/dsl/request_storage.rb', line 104 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
118 119 120 121 122 123 |
# File 'lib/inferno/dsl/request_storage.rb', line 118 def uses_request(*identifiers) named_requests_used.concat(identifiers).uniq! identifiers.each do |identifier| config.add_request(identifier) end end |