$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') require 'test/unit' require 'ostruct' require 'og' require 'og/mixin/timestamped' $og = Og.setup( :store => 'psql', :name => 'test', :user => 'postgres', :password => 'navelrulez', :destroy => true ) class TestCaseOgTimestamped < Test::Unit::TestCase # :nodoc: all class Article include Og::Timestamped property :body, String def initialize(body = nil) @body = body end end def test_all $og.manage_classes a = Article.create('article') a.save a = Article[1] assert a.create_time end end