Method: Conduit::Core::RequestMocker#mock
- Defined in:
- lib/conduit/core/request_mocker.rb
#mock ⇒ Object
Starts mocking, override if using something different than excon to make the requests.
30 31 32 33 |
# File 'lib/conduit/core/request_mocker.rb', line 30 def mock Excon.defaults[:mock] = true Excon.stub({}, body: response, status: @http_status) end |