Skip to content

Instantly share code, notes, and snippets.

@pascalesdedy
Last active October 21, 2018 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pascalesdedy/85ba10014961fd3677ff3263a8737e0c to your computer and use it in GitHub Desktop.
Save pascalesdedy/85ba10014961fd3677ff3263a8737e0c to your computer and use it in GitHub Desktop.
spec/support/request_spec_helper.rb - used for creating simple CRUD TDD
module RequestSpecHelper
# Parse JSON response to ruby hash
def json
JSON.parse(response.body)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment