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

Version Path
plukevdh-activerecord-oracle_enhanced-adapter-1.2.1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
rsim-activerecord-oracle_enhanced-adapter-1.1.9.92 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
rsim-activerecord-oracle_enhanced-adapter-1.1.9.93 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
rsim-activerecord-oracle_enhanced-adapter-1.2.0.1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
rsim-activerecord-oracle_enhanced-adapter-1.2.0.2 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
rsim-activerecord-oracle_enhanced-adapter-1.2.0 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
rsim-activerecord-oracle_enhanced-adapter-1.2.1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
rwc9u-activerecord-oracle_enhanced-adapter-1.2.0 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
saberma-activerecord-oracle_enhanced-adapter-nvarchar2-1.2.1.1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
saberma-activerecord-oracle_enhanced-adapter-nvarchar2-1.2.1.2 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
saberma-activerecord-oracle_enhanced-adapter-nvarchar2-1.2.1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
saberma-saberma-activerecord-oracle_enhanced-adapter-nvarchar2-1.2.1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.2.0 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
activerecord-oracle_enhanced-adapter-1.2.1 spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb