Sha256: e3aa320a4edcd695e63b9973acab251a2c4a282a65d1eb2ce6a271d82ce945fd

Contents?: true

Size: 560 Bytes

Versions: 5

Compression:

Stored size: 560 Bytes

Contents

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

# $DBG = true

require 'rubygems'
require 'facets'
require 'test/unit'

require 'og'

class TC_OgInheritance2 < Test::Unit::TestCase # :nodoc: all
  include Og

  class Project
   property :koko, String
   schema_inheritance
  end

  class FProject < Project
   property :haha, String
  end

  class DProject < Project
   property :kaka, String
  end
  
  $og1.manage_classes(Project, FProject, DProject)
  
  def test_all
    Project.create    
    FProject.create    
    DProject.create    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
og-0.28.0 test/og/tc_inheritance2.rb
og-0.29.0 test/og/tc_inheritance2.rb
og-0.30.0 test/og/tc_inheritance2.rb
og-0.31.0 test/og/tc_inheritance2.rb
og-0.40.0 test/og/tc_inheritance2.rb