Sha256: 6ad904d06068e46dc366922a5eb965de8eeb49d4aff5003fb03b8d9b94ad69dc
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'CONFIG.rb') require 'test/unit' require 'ostruct' require 'og' require 'glue/timestamped' $og = Og.setup( :store => 'psql', :name => 'test', :user => 'postgres', :password => 'navelrulez', :destroy => true ) class TestCaseOgTimestamped < Test::Unit::TestCase # :nodoc: all class Article is 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
og-0.25.0 | test/og/mixin/tc_timestamped.rb |
og-0.26.0 | test/og/mixin/tc_timestamped.rb |