Method: Conduit::Core::RequestMocker#with_mocking
- Defined in:
- lib/conduit/core/request_mocker.rb
#with_mocking ⇒ Object
Wraps the block inside a mocking state.
45 46 47 |
# File 'lib/conduit/core/request_mocker.rb', line 45 def with_mocking mock and yield.tap { unmock } end |