Skip to content

Commit b257683

Browse files
committed
Test with Active Record 8.1.0.beta1 on CI
1 parent a9eba38 commit b257683

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
fail-fast: false
77
matrix:
88
include:
9+
- ruby: 3.4
10+
gemfile: gemfiles/activerecord81.gemfile
911
- ruby: 3.4
1012
gemfile: Gemfile
1113
- ruby: 3.3

gemfiles/activerecord81.gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
source "https://rubygems.org"
2+
3+
gemspec path: ".."
4+
5+
gem "rake"
6+
gem "minitest"
7+
gem "activerecord", "~> 8.1.0.beta1"
8+
gem "pg"
9+
gem "mysql2"
10+
gem "trilogy"
11+
gem "sqlite3"

test/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
formats: {special: "%b %e, %Y"}
3737
}
3838

39-
if ActiveSupport::VERSION::STRING.to_f == 8.0
39+
if ActiveSupport::VERSION::STRING.to_f >= 8.0
4040
ActiveSupport.to_time_preserves_timezone = :zone
4141
elsif ActiveSupport::VERSION::STRING.to_f == 7.2
4242
ActiveSupport.to_time_preserves_timezone = true

0 commit comments

Comments
 (0)