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 4, 2023
1 parent 460820a commit 2322a87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
bundle exec rake test:mysql2
bundle exec rake test:mysql2_makara
bundle exec rake test:mysql2spatial
bundle exec rake test:trilogy
- name: Run tests with postgresql
run: |
bundle exec rake test:postgis
Expand Down
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.extend TrilogyAdapter::Connection

ENV["ARE_DB"] = "trilogy"

0 comments on commit 2322a87

Please sign in to comment.