mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Fix #955
This commit is contained in:
committed by
João Moura
parent
3710c32cee
commit
cf77786da2
@@ -69,7 +69,9 @@ module ActiveModel
|
||||
|
||||
def test_has_many_with_no_serializer
|
||||
PostWithTagsSerializer.new(@post).each_association do |name, serializer, options|
|
||||
puts "The line above will crash this test"
|
||||
assert_equal name, :tags
|
||||
assert_equal serializer, nil
|
||||
assert_equal options, {:virtual_value=>[{"attributes"=>{"name"=>"#hashtagged"}}]}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user