Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit b1d5833

Browse files
eduardojhennevogel
authored andcommitted
Test with Rails 7.1
1 parent 2f67ff6 commit b1d5833

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/spec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
ruby: [ '3.0', '3.1', '3.2', 'head' ]
15-
rails: [ 'gemfiles/Gemfile.rails-6.1.x', 'gemfiles/Gemfile.rails-7.0.x']
15+
rails: [ 'gemfiles/Gemfile.rails-6.1.x', 'gemfiles/Gemfile.rails-7.0.x', 'gemfiles/Gemfile.rails-7.1.x']
1616
exclude: []
1717
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
1818
env:

gemfiles/Gemfile.rails-7.1.x

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source "https://rubygems.org"
2+
3+
gem 'actionpack', '~> 7.1.0'
4+
gem 'activesupport', '~> 7.1.0'
5+
gem 'activemodel', '~> 7.1.0'
6+
gem 'sqlite3', '~> 1.4'
7+
gem 'rspec-rails'
8+
9+
gemspec :path => '../'

spec/requests/active_record_sql_metrics_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
additional_field: :value,
3030
request_id: :request_id,
3131
value: be_between(1, 500),
32-
sql: "INSERT INTO \"metrics\" (\"name\", \"created_at\", \"updated_at\") VALUES (xxx)"
32+
sql: /^INSERT INTO "metrics" \("name", "created_at", "updated_at"\) VALUES \(xxx\)( RETURNING "id")?$/
3333
)
3434
)
3535
end

0 commit comments

Comments
 (0)