Skip to content

Commit

Permalink
Merge pull request #2 from bf4/render-array-objects
Browse files Browse the repository at this point in the history
Account for different handling of symbol keys in Rails 4.0
  • Loading branch information
joaomdmoura committed Jun 26, 2015
2 parents a34a5e7 + 3dd4638 commit f6db5b8
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/has_many_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_has_many_with_no_serializer
tags: [
{"attributes"=>{"id"=>1, "name"=>"#hash_tag"}}
]
}, adapter.serializable_hash[:post_with_tags])
}.to_json, adapter.serializable_hash[:post_with_tags].to_json)
end
end
end
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 [{ attributes: { name: "#hashtagged" }}].as_json, options[:virtual_value]
assert_equal [{ attributes: { name: "#hashtagged" }}].to_json, options[:virtual_value].to_json
end
end

Expand Down

0 comments on commit f6db5b8

Please sign in to comment.