Method: HttpStub::Configurator::Scenario#add_stub!
- Defined in:
- lib/http_stub/configurator/scenario.rb
#add_stub!(stub = nil, &block) ⇒ Object
18 19 20 21 |
# File 'lib/http_stub/configurator/scenario.rb', line 18 def add_stub!(stub=nil, &block) resolved_stub = stub || build_stub(&block) @hash[:stubs] << resolved_stub.to_hash end |