Sha256: 0b7659574259d8b62dd9f7bc86f9dd1cb84c9afda8e0dde751363477cc616bf6
Contents?: true
Size: 892 Bytes
Versions: 14
Compression:
Stored size: 892 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper.rb' describe "OracleEnhancedAdapter emulate OracleAdapter" do before(:all) do if defined?(ActiveRecord::ConnectionAdapters::OracleAdapter) @old_oracle_adapter = ActiveRecord::ConnectionAdapters::OracleAdapter ActiveRecord::ConnectionAdapters.send(:remove_const, :OracleAdapter) end end it "should be an OracleAdapter" do @conn = ActiveRecord::Base.establish_connection(CONNECTION_PARAMS.merge(:emulate_oracle_adapter => true)) ActiveRecord::Base.connection.should_not be_nil ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::OracleAdapter).should be_true end after(:all) do if @old_oracle_adapter ActiveRecord::ConnectionAdapters.send(:remove_const, :OracleAdapter) ActiveRecord::ConnectionAdapters::OracleAdapter = @old_oracle_adapter end end end
Version data entries
14 entries across 14 versions & 6 rubygems