def test_should_save_things cont = Container.new cont.name = 'cat' t = Thing.new t.name = 'meow' cont.things << t cont.save cont1 = Container.find(cont.id) t1 = Thing.find(t.id) t1.name = 'woof' cont1.things = [t1] cont1.save assert_equal 'woof', cont1.things[0].name end