Skip to content

Commit

Permalink
Test with Rails 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoj committed May 28, 2024
1 parent bb284aa commit 59ca148
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
ruby: [ '3.0', '3.1', '3.2', 'head' ]
rails: [ 'gemfiles/Gemfile.rails-6.1.x', 'gemfiles/Gemfile.rails-7.0.x']
rails: [ 'gemfiles/Gemfile.rails-6.1.x', 'gemfiles/Gemfile.rails-7.0.x', 'gemfiles/Gemfile.rails-7.1.x']
exclude: []
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
env:
Expand Down
9 changes: 9 additions & 0 deletions gemfiles/Gemfile.rails-7.1.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source "https://rubygems.org"

gem 'actionpack', '~> 7.1.0'
gem 'activesupport', '~> 7.1.0'
gem 'activemodel', '~> 7.1.0'
gem 'sqlite3', '~> 1.4'
gem 'rspec-rails'

gemspec :path => '../'
2 changes: 1 addition & 1 deletion spec/requests/active_record_sql_metrics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
additional_field: :value,
request_id: :request_id,
value: be_between(1, 500),
sql: "INSERT INTO \"metrics\" (\"name\", \"created_at\", \"updated_at\") VALUES (xxx)"
sql: /^INSERT INTO "metrics" \("name", "created_at", "updated_at"\) VALUES \(xxx\)( RETURNING "id")?$/
)
)
end
Expand Down

0 comments on commit 59ca148

Please sign in to comment.