2006-03-18 11:50:25 -05:00
|
|
|
print "Using native OpenBase\n"
|
|
|
|
require_dependency 'fixtures/course'
|
|
|
|
require 'logger'
|
|
|
|
|
|
|
|
ActiveRecord::Base.logger = Logger.new("debug.log")
|
|
|
|
|
2006-07-10 15:27:04 -04:00
|
|
|
ActiveRecord::Base.configurations = {
|
|
|
|
'arunit' => {
|
|
|
|
:adapter => 'openbase',
|
|
|
|
:username => 'admin',
|
|
|
|
:database => 'activerecord_unittest',
|
|
|
|
},
|
|
|
|
'arunit2' => {
|
|
|
|
:adapter => 'openbase',
|
|
|
|
:username => 'admin',
|
|
|
|
:database => 'activerecord_unittest2'
|
|
|
|
}
|
|
|
|
}
|
2006-03-18 11:50:25 -05:00
|
|
|
|
2006-07-10 15:27:04 -04:00
|
|
|
ActiveRecord::Base.establish_connection 'arunit'
|
|
|
|
Course.establish_connection 'arunit2'
|