Last active
October 21, 2018 20:20
-
-
Save pascalesdedy/85ba10014961fd3677ff3263a8737e0c to your computer and use it in GitHub Desktop.
spec/support/request_spec_helper.rb - used for creating simple CRUD TDD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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