Always use plural for linked types

Although spec is agnostic about inflection rules, examples given are plural
This commit is contained in:
Mateo Murphy
2015-03-20 14:17:03 -04:00
parent 0f55f21266
commit d82c599c68
9 changed files with 51 additions and 51 deletions

View File

@@ -30,7 +30,7 @@ module ActiveModel
end
def test_includes_bio_id
expected = { linkage: { type: "bio", id: "43" } }
expected = { linkage: { type: "bios", id: "43" } }
assert_equal(expected, @adapter.serializable_hash[:data][:links][:bio])
end
@@ -43,7 +43,7 @@ module ActiveModel
id: "43",
content:"AMS Contributor",
links: {
author: { linkage: { type: "author", id: "1" } }
author: { linkage: { type: "authors", id: "1" } }
}
}
]