spec/spec_helper.rb in deimos-ruby-1.24.1 vs spec/spec_helper.rb in deimos-ruby-1.24.2
- old
+ new
@@ -12,9 +12,11 @@
require 'activerecord-import'
require 'handlers/my_batch_consumer'
require 'handlers/my_consumer'
require 'rspec/rails'
require 'rspec/snapshot'
+require "trilogy_adapter/connection"
+ActiveRecord::Base.public_send :extend, TrilogyAdapter::Connection
Dir['./spec/schemas/**/*.rb'].sort.each { |f| require f }
# Constants used for consumer specs
SCHEMA_CLASS_SETTINGS = { off: false, on: true }.freeze