test/og/tc_join.rb in og-0.23.0 vs test/og/tc_join.rb in og-0.24.0
- old
+ new
@@ -1,6 +1,6 @@
-$:.unshift File.join(File.dirname(__FILE__), 'lib')
+require File.join(File.dirname(__FILE__), 'CONFIG.rb')
$DBG = true
require 'test/unit'
@@ -33,19 +33,10 @@
has_one Article
has_one Category
end
def setup
- @og = Og.setup(
- :destroy => true,
- :store => :mysql,
-# :store => :sqlite,
-# :store => :psql,
-# :user => 'postgres',
- :user => 'root',
- :password => 'navelrulez',
- :name => 'test'
- )
+ @og = Og.setup($og_config)
end
def test_all
c1 = Category.create('tech')
c2 = Category.create('funny')