Module: RequestSpecHelper
- Defined in:
- lib/generators/jinda/templates/spec/support/request_spec_helper.rb
Overview
request_spec_helper.rb
Instance Method Summary collapse
-
#json ⇒ Object
Parse JSON response to ruby hash.
Instance Method Details
#json ⇒ Object
Parse JSON response to ruby hash
5 6 7 |
# File 'lib/generators/jinda/templates/spec/support/request_spec_helper.rb', line 5 def json JSON.parse(response.body) end |