Skip to content

Commit

Permalink
Merge pull request #62 from bquorning/test-with-activerecord-7-1
Browse files Browse the repository at this point in the history
Test with ActiveRecord 7.1
  • Loading branch information
bquorning authored Oct 12, 2023
2 parents 99f5006 + 5165515 commit f4e02fa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
activerecord-version: ["6.0", "6.1", "7.0", "7.0.5"]
activerecord-version: ["6.0", "6.1", "7.0", "7.0.5", "7.1"]
ruby-version: ["2.7", "3.0", "3.1", "3.2"]
include:
- {activerecord-version: "5.2", ruby-version: "2.7"}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Ensure compatibility with the Trilogy database adapter.
- Ensure compatibility with Rails 7.1.

## 2.0.0.pre.2

Expand Down
11 changes: 11 additions & 0 deletions gemfiles/7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
source "https://rubygems.org"

gemspec path: ".."

gem "activesupport", "~> 7.1.0"
gem "activemodel", "~> 7.1.0"
gem "activerecord", "~> 7.1.0"
gem "sqlite3", "~> 1.4"
gem "mysql2", "~> 0.5"
gem "pg", "~> 1.1"
gem "trilogy", "~> 2.4"
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
if ActiveRecord.gem_version < Gem::Version.new("6.0")
warn "Skipping tests for ActiveRecord v#{ActiveRecord.gem_version} using the #{db[:adapter]} database adapter."
exit
else
elsif ActiveRecord.gem_version < Gem::Version.new("7.1")
require "trilogy_adapter/connection"
ActiveRecord::Base.extend(TrilogyAdapter::Connection)
end
Expand Down

0 comments on commit f4e02fa

Please sign in to comment.