diff options
Diffstat (limited to 'spec/support/connections/oracle_connection.rb')
-rw-r--r-- | spec/support/connections/oracle_connection.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/support/connections/oracle_connection.rb b/spec/support/connections/oracle_connection.rb index 05be04e410..c28602b134 100644 --- a/spec/support/connections/oracle_connection.rb +++ b/spec/support/connections/oracle_connection.rb @@ -2,11 +2,11 @@ puts "Using native Oracle" require "active_record" require 'logger' +ENV['ADAPTER'] = 'oracle' + # Prepend oracle_enhanced local development directory in front of load path $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../../oracle-enhanced/lib" -ActiveRecord::Base.logger = Logger.new("debug.log") - ActiveRecord::Base.configurations = { 'unit' => { :adapter => 'oracle_enhanced', @@ -14,6 +14,4 @@ ActiveRecord::Base.configurations = { :password => 'arel_unit', :database => 'orcl', } -} - -ActiveRecord::Base.establish_connection 'unit' +}
\ No newline at end of file |