Skip to content
This repository was archived by the owner on Nov 13, 2020. It is now read-only.

Commit bb997d7

Browse files
committed
Add test for other homepage example
1 parent e258772 commit bb997d7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/acceptance_test.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@ def test_homepage_id_style
1313
}
1414
}]
1515
}
16+
JSON
17+
18+
assert JSON::Api.parse(json), "failed to parse"
19+
end
20+
21+
def test_homepage_url_style
22+
json = <<-JSON
23+
{
24+
"posts": [{
25+
"id": "1",
26+
"title": "Rails is Omakase",
27+
"links": {
28+
"author": "http://example.com/people/1",
29+
"comments": "http://example.com/comments/5,12,17,20"
30+
}
31+
}]
32+
}
1633
JSON
1734

1835
assert JSON::Api.parse(json), "failed to parse"

0 commit comments

Comments
 (0)