Skip to content

Commit 3bbc76f

Browse files
author
Lee Richmond
committed
add jsonapi_delete
1 parent bfc8c85 commit 3bbc76f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/jsonapi_spec_helpers/helpers.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def jsonapi_put(url, payload)
6868
put url, params: payload.to_json, headers: jsonapi_headers
6969
end
7070

71+
def jsonapi_delete(url)
72+
delete url, headers: jsonapi_headers
73+
end
74+
7175
def jsonapi_payload(input)
7276
PayloadSanitizer.new(input).sanitize
7377
end

0 commit comments

Comments
 (0)