From 431e21cb4510900619d83302d87788f5100e05ac Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Feb 2005 13:43:44 +0000 Subject: Fixed Base#clone for use with PostgreSQL #565 [hanson@surgery.wisc.edu] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/base_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test') diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 0f93f2ffbc..9f79bf58c2 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -543,6 +543,10 @@ class BasicsTest < Test::Unit::TestCase cloned_topic = topic.clone cloned_topic.title["a"] = "c" assert_equal "b", topic.title["a"] + + cloned_topic.save + assert !cloned_topic.new_record? + assert cloned_topic.id != topic.id end def test_bignum -- cgit v1.2.3