fix the build

This commit is contained in:
Sam Woodard 2016-07-15 13:40:23 -07:00
parent 81169d52b6
commit 3b09fe9cb9
2 changed files with 7 additions and 7 deletions

View File

@ -71,7 +71,7 @@ func TestUnmarshalRelationshipsWithoutIncluded(t *testing.T) {
// Verify each comment has at least an ID
for _, comment := range out.Comments {
if comment.Id == 0 {
if comment.ID == 0 {
t.Fatalf("The comment did not have an ID")
}
}

View File

@ -173,23 +173,23 @@ func TestNoRelations(t *testing.T) {
func TestMarshalOnePayloadWithoutIncluded(t *testing.T) {
data := &Post{
Id: 1,
BlogId: 2,
ClientId: "123e4567-e89b-12d3-a456-426655440000",
ID: 1,
BlogID: 2,
ClientID: "123e4567-e89b-12d3-a456-426655440000",
Title: "Foo",
Body: "Bar",
Comments: []*Comment{
&Comment{
Id: 20,
ID: 20,
Body: "First",
},
&Comment{
Id: 21,
ID: 21,
Body: "Hello World",
},
},
LatestComment: &Comment{
Id: 22,
ID: 22,
Body: "Cool!",
},
}