mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #278 from vanstee/use-old-hash-syntax
Fix the build in 1.8.7
This commit is contained in:
commit
3aa7773ebc
@ -428,7 +428,7 @@ class SerializerTest < ActiveModel::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
post = Post.new(title: "My Post")
|
||||
post = Post.new(:title => "My Post")
|
||||
comments = [Comment.new(:title => "Comment1", :id => 1), Comment.new(:title => "Comment2", :id => 2)]
|
||||
post.comments = comments
|
||||
|
||||
@ -439,8 +439,8 @@ class SerializerTest < ActiveModel::TestCase
|
||||
end
|
||||
json = post_serializer.new(post).as_json
|
||||
assert_equal({
|
||||
title: "My Post",
|
||||
comment_ids: [1]
|
||||
:title => "My Post",
|
||||
:comment_ids => [1]
|
||||
}, json)
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user