Method: HttpStub::Configurator::EndpointTemplate#add_scenario!
- Defined in:
- lib/http_stub/configurator/endpoint_template.rb
#add_scenario!(name, response_overrides = {}, &block) ⇒ Object
13 14 15 |
# File 'lib/http_stub/configurator/endpoint_template.rb', line 13 def add_scenario!(name, response_overrides={}, &block) @server.add_scenario_with_one_stub!(name, self.build_stub(response_overrides), &block) end |