From f1913ad835abce53b5365c11c9d13975c1d8ba46 Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Wed, 15 Sep 2010 10:58:59 -0300 Subject: [PATCH] Uncomment test and make it work. --- activerecord/test/cases/identity_map_test.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/activerecord/test/cases/identity_map_test.rb b/activerecord/test/cases/identity_map_test.rb index d157443b7b..df43d8c4f4 100644 --- a/activerecord/test/cases/identity_map_test.rb +++ b/activerecord/test/cases/identity_map_test.rb @@ -85,8 +85,11 @@ class IdentityMapTest < ActiveRecord::TestCase end def test_loading_new_instance_should_remove_dirt - #assert_equal({'name' => ["Marcin Raczkowski", "Swistak Sreberkowiec"]}, swistak.changes) - #assert_equal("Swistak Sreberkowiec", swistak.name) + swistak = Subscriber.find(:first, :conditions => {:nick => 'swistak'}) + swistak.name = "Swistak Sreberkowiec" + + assert_equal({'name' => ["Marcin Raczkowski", "Swistak Sreberkowiec"]}, swistak.changes) + assert_equal("Swistak Sreberkowiec", swistak.name) end def test_has_many_associations