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