Sha256: 56360d7fab108c4e27658fda72a6842e20f73276f1e292eb903755e7d7e6549a

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

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 <guillaume.pierronnet@gmail.com>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
og-0.27.0 test/og/store/tc_kirby.rb