test/og/mixin/tc_timestamped.rb in og-0.27.0 vs test/og/mixin/tc_timestamped.rb in og-0.28.0
- old
+ new
@@ -6,17 +6,19 @@
require 'ostruct'
require 'og'
require 'glue/timestamped'
+=begin
$og = Og.setup(
:store => 'psql',
:name => 'test',
:user => 'postgres',
:password => 'navelrulez',
:destroy => true
)
+=end
class TestCaseOgTimestamped < Test::Unit::TestCase # :nodoc: all
class Article
is Timestamped
@@ -25,12 +27,12 @@
def initialize(body = nil)
@body = body
end
end
- def test_all
- $og.manage_classes
+ $og1.manage_classes Article
+ def test_all
a = Article.create('article')
a.save
a = Article[1]
assert a.create_time