From 9962069ae905b8797e4971a04c43eb6680c62e09 Mon Sep 17 00:00:00 2001 From: Tee Parham Date: Wed, 30 May 2012 10:55:35 -0600 Subject: [PATCH] delete identical test --- test/association_test.rb | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/test/association_test.rb b/test/association_test.rb index 31b6175c..d174e196 100644 --- a/test/association_test.rb +++ b/test/association_test.rb @@ -185,24 +185,6 @@ class AssociationTest < ActiveModel::TestCase }, @root_hash) end - def test_with_default_has_one_with_custom_key - @post_serializer_class.class_eval do - has_one :comment, :key => :custom_comment - end - - include! :comment - - assert_equal({ - :custom_comment => 1 - }, @hash) - - assert_equal({ - :custom_comments => [ - { :id => 1, :body => "ZOMG A COMMENT" } - ] - }, @root_hash) - end - def test_embed_objects_for_has_many_associations @post_serializer_class.class_eval do has_many :comments, :embed => :objects