Skip to content

Commit 66ccd65

Browse files
authored
Test on Rails 7.2 (#54)
1 parent 65f7d05 commit 66ccd65

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
gemfile: ['rails_5.2', 'rails_6.0', 'rails_6.1', 'rails_7.0', 'rails_7.1']
31+
gemfile: ['rails_5.2', 'rails_6.0', 'rails_6.1', 'rails_7.0', 'rails_7.1', 'rails_7.2']
3232

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

@@ -61,6 +61,16 @@ jobs:
6161
gemfile: 'rails_7.1'
6262
- ruby: '2.6'
6363
gemfile: 'rails_7.1'
64+
- ruby: '2.4'
65+
gemfile: 'rails_7.2'
66+
- ruby: '2.5'
67+
gemfile: 'rails_7.2'
68+
- ruby: '2.6'
69+
gemfile: 'rails_7.2'
70+
- ruby: '2.7'
71+
gemfile: 'rails_7.2'
72+
- ruby: '3.0'
73+
gemfile: 'rails_7.2'
6474

6575
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
6676
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

Appraisals

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@ appraise 'rails-7.1' do
2424
gem 'activemodel', '~> 7.1.0'
2525
gem 'activesupport', '~> 7.1.0'
2626
end
27+
28+
appraise 'rails-7.2' do
29+
gem 'activemodel', '~> 7.2.0'
30+
gem 'activesupport', '~> 7.2.0'
31+
end

gemfiles/rails_7.2.gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activemodel", "~> 7.2.0"
6+
gem "activesupport", "~> 7.2.0"
7+
8+
gemspec path: "../"

spec/persistence_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ class MockModelNoAllIndex < MockModel
277277
end
278278

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

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

333333
describe 'update_attributes' do
334-
around(:each) { |example| ActiveSupport::Deprecation.silence { example.run } }
334+
around(:each) { |example| ActiveSupport::Deprecation.new.silence { example.run } }
335335

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

0 commit comments

Comments
 (0)