Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lost test test_include_multiple_posts_and_linked #798

Merged
merged 1 commit into from
Mar 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/adapter/json_api/linked_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def test_include_multiple_posts_and_linked
@second_comment.post = @first_post
@second_comment.author = nil
assert_equal([
{ title: "Hello!!", body: "Hello, world!!", id: "1", links: { comments: ['1', '2'], author: "1" } },
{ title: "New Post", body: "Body", id: "2", links: { comments: [], :author => "2" } }
{ title: "Hello!!", body: "Hello, world!!", id: "1", links: { comments: ['1', '2'], blog: "999", author: "1" } },
{ title: "New Post", body: "Body", id: "2", links: { comments: [], blog: "999", author: "2" } }
], @adapter.serializable_hash[:posts])


Expand All @@ -69,7 +69,7 @@ def test_include_multiple_posts_and_linked
id: "1",
name: "Steve K.",
links: {
posts: ["1"],
posts: ["1", "3"],
roles: [],
bio: "1"
}
Expand Down Expand Up @@ -99,7 +99,7 @@ def test_include_multiple_posts_and_linked
assert_equal expected, @adapter.serializable_hash[:linked]
end

def test_include_multiple_posts_and_linked
def test_include_bio_and_linked
@serializer = BioSerializer.new(@bio1)
@adapter = ActiveModel::Serializer::Adapter::JsonApi.new(@serializer, include: 'author,author.posts')

Expand Down