Sha256: 1df8b954364c9c85039649303fa80c4d44ea5756a76f158bb25daa2f28698e96

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

require 'support/paths_sqlserver'
require 'bundler/setup'
Bundler.require :default, :development
require 'pry'
require 'support/minitest_sqlserver'
require 'cases/helper'
require 'support/load_schema_sqlserver'
require 'support/coerceable_test_sqlserver'
require 'support/sql_counter_sqlserver'
require 'support/connection_reflection'
require 'mocha/mini_test'

module ActiveRecord
  class TestCase < ActiveSupport::TestCase

    SQLServer = ActiveRecord::ConnectionAdapters::SQLServer

    include ARTest::SQLServer::CoerceableTest,
            ARTest::SQLServer::ConnectionReflection,
            ARTest::SQLServer::SqlCounterSqlserver,
            ActiveSupport::Testing::Stream

    let(:logger) { ActiveRecord::Base.logger }


    private

    def host_windows?
      RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
    end

    def with_use_output_inserted_disabled
      klass = ActiveRecord::ConnectionAdapters::SQLServerAdapter
      klass.use_output_inserted = false
      yield
    ensure
      klass.use_output_inserted = true
    end

  end
end

Dir["#{ARTest::SQLServer.test_root_sqlserver}/models/**/*.rb"].each { |f| require f }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-5.0.5 test/cases/helper_sqlserver.rb
activerecord-sqlserver-adapter-5.0.4 test/cases/helper_sqlserver.rb
activerecord-sqlserver-adapter-5.0.3 test/cases/helper_sqlserver.rb
activerecord-sqlserver-adapter-5.0.1 test/cases/helper_sqlserver.rb
activerecord-sqlserver-adapter-5.0.0 test/cases/helper_sqlserver.rb