Module: RSpecApi::DSL::HttpClient

Includes:
Rack::Test::Methods
Defined in:
lib/rspec-api/http_clients/empty.rb,
lib/rspec-api/http_clients/local.rb,
lib/rspec-api/http_clients/remote.rb

Instance Method Summary collapse

Instance Method Details

#ciaoObject



14
15
16
# File 'lib/rspec-api/http_clients/local.rb', line 14

def ciao

end

#last_responseObject



8
9
10
11
# File 'lib/rspec-api/http_clients/empty.rb', line 8

def last_response
  # To be overriden. status MUST be a number, headers MUST be a hash
  OpenStruct.new status: nil, headers: {} # body: nil,
end

#responseObject



23
24
25
# File 'lib/rspec-api/http_clients/local.rb', line 23

def response
  last_response
end

#send_request(verb, route, body, authorization) ⇒ Object



4
5
6
# File 'lib/rspec-api/http_clients/empty.rb', line 4

def send_request(verb, route, body, authorization)
  # To be overriden
end