aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/connections/native_openbase/connection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/connections/native_openbase/connection.rb')
-rw-r--r--activerecord/test/connections/native_openbase/connection.rb29
1 files changed, 14 insertions, 15 deletions
diff --git a/activerecord/test/connections/native_openbase/connection.rb b/activerecord/test/connections/native_openbase/connection.rb
index 01a2ffe646..deaa73d347 100644
--- a/activerecord/test/connections/native_openbase/connection.rb
+++ b/activerecord/test/connections/native_openbase/connection.rb
@@ -4,19 +4,18 @@ require 'logger'
ActiveRecord::Base.logger = Logger.new("debug.log")
-db1 = 'activerecord_unittest'
-db2 = 'activerecord_unittest2'
+ActiveRecord::Base.configurations = {
+ 'arunit' => {
+ :adapter => 'openbase',
+ :username => 'admin',
+ :database => 'activerecord_unittest',
+ },
+ 'arunit2' => {
+ :adapter => 'openbase',
+ :username => 'admin',
+ :database => 'activerecord_unittest2'
+ }
+}
-ActiveRecord::Base.establish_connection(
- :adapter => "openbase",
- :username => "admin",
- :password => "",
- :database => db1
-)
-
-Course.establish_connection(
- :adapter => "openbase",
- :username => "admin",
- :password => "",
- :database => db2
-)
+ActiveRecord::Base.establish_connection 'arunit'
+Course.establish_connection 'arunit2'