spec/helpers.rb
def post
      req = MockRequest.new
      yield req
      if req.path == D2D::Client::Authentication::PATH
        repl = { authorization_id: 'n0b4dg3s' }
        content = Helpers.hash_fill!(Helpers.auth_success_response, repl)
        return MockResponse.new(content)
      end
      @response
    end
# simulate Faraday request custommization
# HTTP request is yielded to block, where URL, headers, and
# body are set on 
simulate Faraday request custommization
HTTP request is yielded to block, where URL, headers, and
body are set on
simulate Faraday request custommization HTTP request is yielded to block where URL headers and body are set on
def post
      req = MockRequest.new
      yield req
      if req.path == D2D::Client::Authentication::PATH
        repl = { authorization_id: 'n0b4dg3s' }
        content = Helpers.hash_fill!(Helpers.auth_success_response, repl)
        return MockResponse.new(content)
      end
      @response
    end
def post req = MockRequest . new yield req if req . path == D2D :: Client :: Authentication :: PATH repl = { authorization_id : 'n0b4dg3s' } content = Helpers . hash_fill! ( Helpers . auth_success_response , repl ) return MockResponse . new ( content ) end @response end
simulate Faraday request custommization
HTTP request is yielded to block, where URL, headers, and
body are set on
simulate Faraday request custommization HTTP request is yielded to block where URL headers and body are set on