Sha256: 29d2c5667f3d9b6ebf0fcbb895b324eb68a64d23b376ca09427de003101729bb

Contents?: true

Size: 865 Bytes

Versions: 20

Compression:

Stored size: 865 Bytes

Contents

require 'spec_helper'

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))
    expect(ActiveRecord::Base.connection).not_to be_nil
    expect(ActiveRecord::Base.connection.is_a?(ActiveRecord::ConnectionAdapters::OracleAdapter)).to be_truthy
  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

20 entries across 20 versions & 1 rubygems

Version Path
activerecord-oracle_enhanced-adapter-1.7.11 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.10 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.9 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.8 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.7 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.6 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.5 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.4 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.3 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.2 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0.rc1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta7 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta6 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta5 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta4 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta3 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta2 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.7.0.beta1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb