require 'rubygems' require 'facets' require 'test/unit' require 'og' $DBG = true class Track prop_accessor :name, String belongs_to Disc end class Disc prop_accessor :name, String has_many Track end Og.setup( :destroy => true, :store => :kirby ) class TC_Kirby < Test::Unit::TestCase # :nodoc: all def test_all d = Disc.create t = Track.create d.tracks << t assert_equal 1, d.tracks.size end end # * Guillaume Pierronnet