Skip to content

Commit

Permalink
Test on Rails 7.2 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld authored Sep 6, 2024
1 parent 65f7d05 commit 66ccd65
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
gemfile: ['rails_5.2', 'rails_6.0', 'rails_6.1', 'rails_7.0', 'rails_7.1']
gemfile: ['rails_5.2', 'rails_6.0', 'rails_6.1', 'rails_7.0', 'rails_7.1', 'rails_7.2']

ruby: ['2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']

Expand Down Expand Up @@ -61,6 +61,16 @@ jobs:
gemfile: 'rails_7.1'
- ruby: '2.6'
gemfile: 'rails_7.1'
- ruby: '2.4'
gemfile: 'rails_7.2'
- ruby: '2.5'
gemfile: 'rails_7.2'
- ruby: '2.6'
gemfile: 'rails_7.2'
- ruby: '2.7'
gemfile: 'rails_7.2'
- ruby: '3.0'
gemfile: 'rails_7.2'

env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
Expand Down
5 changes: 5 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ appraise 'rails-7.1' do
gem 'activemodel', '~> 7.1.0'
gem 'activesupport', '~> 7.1.0'
end

appraise 'rails-7.2' do
gem 'activemodel', '~> 7.2.0'
gem 'activesupport', '~> 7.2.0'
end
8 changes: 8 additions & 0 deletions gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activemodel", "~> 7.2.0"
gem "activesupport", "~> 7.2.0"

gemspec path: "../"
4 changes: 2 additions & 2 deletions spec/persistence_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class MockModelNoAllIndex < MockModel
end

describe 'update_attributes!' do
around(:each) { |example| ActiveSupport::Deprecation.silence { example.run } }
around(:each) { |example| ActiveSupport::Deprecation.new.silence { example.run } }

it 'updates the given attributes' do
model.update_attributes!(name: 'Derp', age: 29)
Expand Down Expand Up @@ -331,7 +331,7 @@ class MockModelNoAllIndex < MockModel
end

describe 'update_attributes' do
around(:each) { |example| ActiveSupport::Deprecation.silence { example.run } }
around(:each) { |example| ActiveSupport::Deprecation.new.silence { example.run } }

it 'updates the given attributes' do
model.update_attributes(name: 'Derp', age: 29)
Expand Down

0 comments on commit 66ccd65

Please sign in to comment.