diff --git a/activerecord-ksuid/spec/doctest_helper.rb b/activerecord-ksuid/spec/doctest_helper.rb index e5a4332..2dfa436 100644 --- a/activerecord-ksuid/spec/doctest_helper.rb +++ b/activerecord-ksuid/spec/doctest_helper.rb @@ -6,11 +6,11 @@ require 'active_record/ksuid/railtie' -ActiveRecord::KSUID::Railtie.initializers.each(&:run) -ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base) - ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') ActiveRecord::Base.logger = Logger.new(IO::NULL) ActiveRecord::Schema.verbose = false +ActiveRecord::KSUID::Railtie.initializers.each(&:run) +ActiveSupport.run_load_hooks(:active_record, ActiveRecord::Base) + ActiveSupport::Deprecation.instance.silenced = true