Skip to content

Commit 3505bc6

Browse files
committed
Merge pull request #798 from donbobka/feature/fix_lost_test
Fix lost test `test_include_multiple_posts_and_linked`
2 parents a824376 + 54d6696 commit 3505bc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/adapter/json_api/linked_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def test_include_multiple_posts_and_linked
4444
@second_comment.post = @first_post
4545
@second_comment.author = nil
4646
assert_equal([
47-
{ title: "Hello!!", body: "Hello, world!!", id: "1", links: { comments: ['1', '2'], author: "1" } },
48-
{ title: "New Post", body: "Body", id: "2", links: { comments: [], :author => "2" } }
47+
{ title: "Hello!!", body: "Hello, world!!", id: "1", links: { comments: ['1', '2'], blog: "999", author: "1" } },
48+
{ title: "New Post", body: "Body", id: "2", links: { comments: [], blog: "999", author: "2" } }
4949
], @adapter.serializable_hash[:posts])
5050

5151

@@ -69,7 +69,7 @@ def test_include_multiple_posts_and_linked
6969
id: "1",
7070
name: "Steve K.",
7171
links: {
72-
posts: ["1"],
72+
posts: ["1", "3"],
7373
roles: [],
7474
bio: "1"
7575
}
@@ -99,7 +99,7 @@ def test_include_multiple_posts_and_linked
9999
assert_equal expected, @adapter.serializable_hash[:linked]
100100
end
101101

102-
def test_include_multiple_posts_and_linked
102+
def test_include_bio_and_linked
103103
@serializer = BioSerializer.new(@bio1)
104104
@adapter = ActiveModel::Serializer::Adapter::JsonApi.new(@serializer, include: 'author,author.posts')
105105

0 commit comments

Comments
 (0)