Skip to content

Commit 741c4a4

Browse files
committed
updating tests to work with new virtual_value implementation
1 parent d3649d5 commit 741c4a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/adapter/json_api/has_many_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_has_many_with_no_serializer
115115
id: "1",
116116
type: "posts",
117117
relationships: {
118-
tags: {:data=>nil}
118+
tags: { data: nil }
119119
}
120120
}
121121
}, adapter.serializable_hash)

test/serializers/associations_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_has_many_with_no_serializer
7171
PostWithTagsSerializer.new(@post).each_association do |name, serializer, options|
7272
assert_equal name, :tags
7373
assert_equal serializer, nil
74-
assert_equal options, {:virtual_value=>[{"attributes"=>{"name"=>"#hashtagged"}}]}
74+
assert_equal [{ attributes: { name: "#hashtagged" }}].as_json, options[:virtual_value]
7575
end
7676
end
7777

0 commit comments

Comments
 (0)