Skip to content

Commit

Permalink
make sure the test files loads required files for tests
Browse files Browse the repository at this point in the history
and update require statement for AR trilogy adapter
  • Loading branch information
zmariscal committed Sep 2, 2023
1 parent 70b0893 commit 6a5e0e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require "activerecord-import/adapters/trilogy_adapter"
require "active_record/import/trilogy_adapter"

class ActiveRecord::ConnectionAdapters::TrilogyAdapter
include ActiveRecord::Import::TrilogyAdapter
Expand Down
5 changes: 5 additions & 0 deletions test/adapters/trilogy.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# frozen_string_literal: true

# ensure we connect to the trilogy adapter
require "activerecord-trilogy-adapter"
require "trilogy_adapter/connection"
ActiveRecord::Base.public_send :extend, TrilogyAdapter::Connection

ENV["ARE_DB"] = "trilogy"

0 comments on commit 6a5e0e2

Please sign in to comment.