Sha256: c0befc0b2f6849ab158c2c35f11a44fa72b9e94a8db1f9e693ba5a41484d25d7
Contents?: true
Size: 1.58 KB
Versions: 8
Compression:
Stored size: 1.58 KB
Contents
# frozen_string_literal: true require "support/paths_sqlserver" require "bundler/setup" Bundler.require :default, :development require "pry" require "support/core_ext/query_cache" require "support/minitest_sqlserver" require "support/test_in_memory_oltp" require "support/table_definition_sqlserver" require "cases/helper" require "support/load_schema_sqlserver" require "support/coerceable_test_sqlserver" require "support/connection_reflection" require "support/query_assertions" require "mocha/minitest" module ActiveSupport class TestCase < ::Minitest::Test include ARTest::SQLServer::CoerceableTest end end module ActiveRecord class TestCase < ActiveSupport::TestCase SQLServer = ActiveRecord::ConnectionAdapters::SQLServer include ARTest::SQLServer::ConnectionReflection, ActiveSupport::Testing::Stream, ARTest::SQLServer::QueryAssertions let(:logger) { ActiveRecord::Base.logger } setup :ensure_clean_rails_env setup :remove_backtrace_silencers private def ensure_clean_rails_env Rails.instance_variable_set(:@_env, nil) if defined?(::Rails) end def remove_backtrace_silencers Rails.backtrace_cleaner.remove_silencers! 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
8 entries across 8 versions & 1 rubygems