Implement included and id and type as per spec

This commit is contained in:
Mateo Murphy
2015-03-20 16:04:33 -04:00
parent d82c599c68
commit 33f3a88ba0
12 changed files with 203 additions and 130 deletions

View File

@@ -41,6 +41,7 @@ module ActiveModel
expected = [
{
id: "43",
type: "bios",
content:"AMS Contributor",
links: {
author: { linkage: { type: "authors", id: "1" } }
@@ -48,7 +49,7 @@ module ActiveModel
}
]
assert_equal(expected, @adapter.serializable_hash[:linked][:bios])
assert_equal(expected, @adapter.serializable_hash[:included])
end
end
end