Sha256: ab85fd36e1fd85fe9390d6638a81d2f526cd41e0f3be2f9c3c2c4ccc7ceacfbf
Contents?: true
Size: 916 Bytes
Versions: 4
Compression:
Stored size: 916 Bytes
Contents
require 'json' module Spinach module Fixtures def root_response '{ "_links": { "self": { "href": "/" }, "posts": { "href": "/posts" }, "search": { "href": "/search{?q}", "templated": true }, "api:authors": { "href": "/authors" } } }' end def posts_response '{ "_links": { "self": { "href": "/posts" }, "last_post": {"href": "/posts/1"} }, "total_posts": "9" }' end def post_response '{ "_links": { "self": { "href": "/posts/1" } }, "title": "My first blog post", "body": "Lorem ipsum dolor sit amet", "_embedded": { "comments": [ { "title": "Some comment" } ] } }' end end end
Version data entries
4 entries across 4 versions & 1 rubygems