mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
updating tests to work with new virtual_value implementation
This commit is contained in:
@@ -71,7 +71,7 @@ module ActiveModel
|
||||
PostWithTagsSerializer.new(@post).each_association do |name, serializer, options|
|
||||
assert_equal name, :tags
|
||||
assert_equal serializer, nil
|
||||
assert_equal options, {:virtual_value=>[{"attributes"=>{"name"=>"#hashtagged"}}]}
|
||||
assert_equal [{ attributes: { name: "#hashtagged" }}].as_json, options[:virtual_value]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user