Sha256: a03c884535b229340b6a5b0a558524f3aa8339f48579e31b1fef05901941dd3d
Contents?: true
Size: 782 Bytes
Versions: 2
Compression:
Stored size: 782 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper.rb' describe "OracleEnhancedAdapter emulate OracleAdapter" do before(:all) do if defined?(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 defined?(ActiveRecord::ConnectionAdapters::OracleAdapter) ActiveRecord::ConnectionAdapters.send(:remove_const, :OracleAdapter) end end end
Version data entries
2 entries across 2 versions & 1 rubygems