From 0a515dc68d632bde50ef31080f4edae624d3a90c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 22 Sep 2010 14:57:42 -0700 Subject: testing poor behavior of hash serialization --- activerecord/test/cases/base_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index c6f1bc8693..69c798b959 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -659,6 +659,10 @@ class BasicsTest < ActiveRecord::TestCase cloned_topic.save assert !cloned_topic.new_record? assert_not_equal cloned_topic.id, topic.id + + cloned_topic.reload + # FIXME: I think this is poor behavior, and will fix it with #5686 + assert_equal 'ac', cloned_topic.title end def test_clone_with_aggregate_of_same_name_as_attribute -- cgit v1.2.3