1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Uncomment test and make it work.

This commit is contained in:
Emilio Tagua 2010-09-15 10:58:59 -03:00
parent f0eaf11c0e
commit f1913ad835

View file

@ -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