From a34a5e76244221edee66122011c2d6c6fd63c20c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 22 Jun 2015 18:44:01 -0300 Subject: [PATCH] updating tests to work with new virtual_value implementation --- test/adapter/json_api/has_many_test.rb | 2 +- test/serializers/associations_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/adapter/json_api/has_many_test.rb b/test/adapter/json_api/has_many_test.rb index 5381a080d..3cef3ef8b 100644 --- a/test/adapter/json_api/has_many_test.rb +++ b/test/adapter/json_api/has_many_test.rb @@ -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) diff --git a/test/serializers/associations_test.rb b/test/serializers/associations_test.rb index bf468931b..f92e5a906 100644 --- a/test/serializers/associations_test.rb +++ b/test/serializers/associations_test.rb @@ -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, options[:virtual_value] end end