Sha256: 679db3dd5befb603ec1d29908f7b8c1a354f03446b19d75f13a79aa63657a2e7
Contents?: true
Size: 804 Bytes
Versions: 3
Compression:
Stored size: 804 Bytes
Contents
require File.join(File.dirname(__FILE__), 'CONFIG.rb') require 'rubygems' require 'facets' require 'test/unit' require 'og' class TestOg < Test::Unit::TestCase include Og class Book property :title belongs_to :owner, Person # this creates a problem? end class Person property :name, Og::VarChar(128) has_many :books, Book, :foreign_name => :owner end def setup @old_prefix = Og.table_prefix Og.table_prefix = nil og = Og.start end def teardown Og.table_prefix = @old_prefix @old_prefix = nil end def test_basic book = Book.create person = Person.create person.books << book end def test_not_an_exact_duplicate # This is supposed to test Og.table_prefix, see setup below. end end # * Kristof Jozsa <dyn@ond.vein.hu>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
og-0.29.0 | test/og/tc_override.rb |
og-0.31.0 | test/og/tc_override.rb |
og-0.30.0 | test/og/tc_override.rb |