Permalink
Browse files

Uncomment test and make it work.

  • Loading branch information...
1 parent f0eaf11 commit f1913ad835abce53b5365c11c9d13975c1d8ba46 @miloops miloops committed Sep 15, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 activerecord/test/cases/identity_map_test.rb
@@ -85,8 +85,11 @@ def test_loading_new_instance_should_not_update_dirty_attributes
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

0 comments on commit f1913ad

Please sign in to comment.