Module: RackSpecMixin
- Includes:
- Rack::Test::Methods
- Defined in:
- lib/hippo/spec_helper.rb
Instance Method Summary collapse
Instance Method Details
#last_response_json ⇒ Object
43 44 45 |
# File 'lib/hippo/spec_helper.rb', line 43 def last_response_json Oj.load(last_response.body) end |
#response_data ⇒ Object
46 47 48 |
# File 'lib/hippo/spec_helper.rb', line 46 def response_data last_response_json['data'] end |