Skip to content

Commit

Permalink
updating tests to work with new virtual_value implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Jun 22, 2015
1 parent 40c4183 commit c6b030c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/adapter/json_api/has_many_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def test_has_many_with_no_serializer
id: "1",
type: "posts",
relationships: {
tags: {:data=>nil}
tags: { data: nil }
}
}
}, adapter.serializable_hash)
Expand Down
2 changes: 1 addition & 1 deletion test/serializers/associations_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_has_many_with_no_serializer
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, virtual_value
end
end

Expand Down

0 comments on commit c6b030c

Please sign in to comment.