Module: SerialSpec::RequestResponse::Helpers

Extended by:
ActiveSupport::Concern
Included in:
SerialSpec, SerialSpec::RequestResponse
Defined in:
lib/serial_spec/request_response/helpers.rb

Instance Method Summary collapse

Instance Method Details

#bodyObject



21
22
23
24
25
# File 'lib/serial_spec/request_response/helpers.rb', line 21

def body
  @body ||= begin
    ParsedBody.new(response.body)
  end
end

#headersObject



13
14
15
# File 'lib/serial_spec/request_response/helpers.rb', line 13

def headers
  response.headers
end

#responseObject



17
18
19
# File 'lib/serial_spec/request_response/helpers.rb', line 17

def response
  last_response
end

#statusObject



9
10
11
# File 'lib/serial_spec/request_response/helpers.rb', line 9

def status
  response.status
end