add zone test-rspec
This commit is contained in:
7
spec/support/request_spec_helper.rb
Normal file
7
spec/support/request_spec_helper.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# spec/support/request_spec_helper
|
||||
module RequestSpecHelper
|
||||
# Parse JSON response to ruby hash
|
||||
def json
|
||||
JSON.parse(response.body)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user