Module: Napa::RspecExtensions::ResponseHelpers
- Defined in:
- lib/napa/rspec_extensions/response_helpers.rb
Instance Method Summary collapse
Instance Method Details
#parsed_response ⇒ Object
4 5 6 |
# File 'lib/napa/rspec_extensions/response_helpers.rb', line 4 def parsed_response Hashie::Mash.new(JSON.parse(last_response.body)) end |
#response_body ⇒ Object
12 13 14 |
# File 'lib/napa/rspec_extensions/response_helpers.rb', line 12 def response_body last_response.body end |
#response_code ⇒ Object
8 9 10 |
# File 'lib/napa/rspec_extensions/response_helpers.rb', line 8 def response_code last_response.status end |