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

@@ -44,14 +44,14 @@ module ActiveModel
id: "1",
body: 'ZOMG A COMMENT',
links: {
post: { linkage: { type: "post", id: "1" } },
post: { linkage: { type: "posts", id: "1" } },
author: { linkage: nil }
}
}, {
id: "2",
body: 'ZOMG ANOTHER COMMENT',
links: {
post: { linkage: { type: "post", id: "1" } },
post: { linkage: { type: "posts", id: "1" } },
author: { linkage: nil }
}
}]
@@ -63,13 +63,13 @@ module ActiveModel
expected = [{
id: "1",
links: {
post: { linkage: { type: "post", id: "1" } },
post: { linkage: { type: "posts", id: "1" } },
author: { linkage: nil }
}
}, {
id: "2",
links: {
post: { linkage: { type: "post", id: "1" } },
post: { linkage: { type: "posts", id: "1" } },
author: { linkage: nil }
}
}]