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
#body ⇒ Object
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 |
#headers ⇒ Object
13 14 15 |
# File 'lib/serial_spec/request_response/helpers.rb', line 13 def headers response.headers end |
#response ⇒ Object
17 18 19 |
# File 'lib/serial_spec/request_response/helpers.rb', line 17 def response last_response end |
#status ⇒ Object
9 10 11 |
# File 'lib/serial_spec/request_response/helpers.rb', line 9 def status response.status end |