Sha256: 8ae03247939a74a3a6808597e8b78b8fb0fa71ec24af85d01fa168c7454026d2
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
require 'support/paths_sqlserver' require 'bundler/setup' Bundler.require :default, :development require 'pry' require 'support/minitest_sqlserver' require 'support/test_in_memory_oltp' require 'cases/helper' require 'support/load_schema_sqlserver' require 'support/coerceable_test_sqlserver' require 'support/sql_counter_sqlserver' require 'support/connection_reflection' require 'mocha/minitest' 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 } setup :ensure_clean_rails_env private def ensure_clean_rails_env Rails.instance_variable_set(:@_env, nil) if defined?(::Rails) end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-jdbcsqlserver-adapter-51.1.0 | test/cases/helper_sqlserver.rb |