2006-04-27 18:39:45 -04:00
|
|
|
puts 'Using native Frontbase'
|
|
|
|
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 => 'frontbase',
|
|
|
|
:host => 'localhost',
|
|
|
|
:username => 'rails',
|
|
|
|
:password => '',
|
|
|
|
:database => 'activerecord_unittest',
|
|
|
|
:session_name => "unittest-#{$$}"
|
|
|
|
},
|
|
|
|
'arunit2' => {
|
|
|
|
:adapter => 'frontbase',
|
|
|
|
:host => 'localhost',
|
|
|
|
:username => 'rails',
|
|
|
|
:password => '',
|
|
|
|
:database => 'activerecord_unittest2',
|
|
|
|
:session_name => "unittest-#{$$}"
|
|
|
|
}
|
|
|
|
}
|
2006-04-27 18:39:45 -04:00
|
|
|
|
2006-07-10 15:27:04 -04:00
|
|
|
ActiveRecord::Base.establish_connection 'arunit'
|
|
|
|
Course.establish_connection 'arunit2'
|