Sha256: c8b690682fdff0241ecb566f5e906743685b8deb5677a2cf1be72db561ff4c1c

Contents?: true

Size: 651 Bytes

Versions: 2

Compression:

Stored size: 651 Bytes

Contents

=begin KirbyBase is currently not available.

require File.join(File.dirname(__FILE__), '..', 'CONFIG.rb')

require 'test/unit'

begin

og = Og.setup( :destroy => true, :store => :kirby, :manual_management => true)

class TC_Kirby < Test::Unit::TestCase # :nodoc: all
  
  class Track
    attr_accessor :name, String
    belongs_to Disc
  end

  class Disc
    attr_accessor :name, String
    has_many Track
  end

  og.manage_classes(Track, Disc)

  def test_all
    d = Disc.create
    t = Track.create
    d.tracks << t

    assert_equal 1, d.tracks.size
  end

end

rescue LoadError => e
  puts 'Skipping Kirby test, adapter not found.'
end

=end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
og-0.41.0 test/og/store/tc_kirby.rb
og-0.40.0 test/og/store/tc_kirby.rb