updating tests to work with new virtual_value implementation

This commit is contained in:
João Moura 2015-06-22 18:44:01 -03:00
parent d3649d5b4e
commit 741c4a4b51
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ module ActiveModel
id: "1",
type: "posts",
relationships: {
tags: {:data=>nil}
tags: { data: nil }
}
}
}, adapter.serializable_hash)

View File

@ -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