Module: Inferno::DSL::RequestStorage::ClassMethods

Defined in:
lib/inferno/dsl/request_storage.rb

Instance Method Summary collapse

Instance Method Details

#makes_request(*identifiers) ⇒ Object

Specify the named requests made by a test

Parameters:

  • identifiers (Symbol)

    one or more request identifiers



92
93
94
95
96
97
# File 'lib/inferno/dsl/request_storage.rb', line 92

def makes_request(*identifiers)
  named_requests_made.concat(identifiers).uniq!
  identifiers.each do |identifier|
    config.add_request(identifier)
  end
end

#receives_request(identifier) ⇒ Object

Specify the name for a request received by a test

Parameters:

  • identifier (Symbol)


102
103
104
105
# File 'lib/inferno/dsl/request_storage.rb', line 102

def receives_request(identifier)
  config.add_request(identifier)
  @incoming_request_name = identifier
end

#uses_request(*identifiers) ⇒ Object

Specify the named requests used by a test

Parameters:

  • identifiers (Symbol)

    one or more request identifiers



115
116
117
118
119
120
# File 'lib/inferno/dsl/request_storage.rb', line 115

def uses_request(*identifiers)
  named_requests_used.concat(identifiers).uniq!
  identifiers.each do |identifier|
    config.add_request(identifier)
  end
end