updates and spec fixes

This commit is contained in:
2018-06-07 17:31:21 -03:00
parent adc02128e4
commit c2a1c61f82
6 changed files with 144 additions and 142 deletions
@@ -98,7 +98,7 @@ RSpec.describe Api::PostsController, type: :controller do
type: "comment",
attributes: {body: "post-1-comment-1"},
relationships: {
post: {data: {id: post1.id.to_s, type: "posts"}}
post: {data: {id: post1.id.to_s, type: "post"}}
}
}
],
@@ -31,7 +31,7 @@ RSpec.describe Api::PostsController, type: :controller do
type: "comment",
attributes: {body: "post-1-comment-1"},
relationships: {
post: {data: {id: post1.id.to_s, type: "posts"}}
post: {data: {id: post1.id.to_s, type: "post"}}
}
}
]