mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
If output is as expected, is this assert important?
This commit is contained in:
@@ -398,8 +398,6 @@ class AssociationTest < ActiveModel::TestCase
|
|||||||
|
|
||||||
include_bare! :comment
|
include_bare! :comment
|
||||||
|
|
||||||
assert_equal :comment_id, association_name
|
|
||||||
|
|
||||||
assert_equal({
|
assert_equal({
|
||||||
:comment_id => 1
|
:comment_id => 1
|
||||||
}, @hash)
|
}, @hash)
|
||||||
@@ -423,8 +421,6 @@ class AssociationTest < ActiveModel::TestCase
|
|||||||
|
|
||||||
include_bare! :comments
|
include_bare! :comments
|
||||||
|
|
||||||
assert_equal :comment_ids, association_name
|
|
||||||
|
|
||||||
assert_equal({
|
assert_equal({
|
||||||
:comment_ids => [1]
|
:comment_ids => [1]
|
||||||
}, @hash)
|
}, @hash)
|
||||||
|
|||||||
Reference in New Issue
Block a user