mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Serialize ids as strings in JSON-API adapter
This commit is contained in:
@@ -17,8 +17,8 @@ module ActiveModel
|
||||
|
||||
def test_include_multiple_posts
|
||||
assert_equal([
|
||||
{title: "Hello!!", body: "Hello, world!!", id: 1, links: {comments: []}},
|
||||
{title: "New Post", body: "Body", id: 2, links: {comments: []}}
|
||||
{title: "Hello!!", body: "Hello, world!!", id: "1", links: {comments: []}},
|
||||
{title: "New Post", body: "Body", id: "2", links: {comments: []}}
|
||||
], @adapter.serializable_hash[:posts])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user