Skip to content

Commit 9d5962b

Browse files
committed
Add Rails 7.1 to the test matrix
1 parent 024da00 commit 9d5962b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
ruby: [ "3.3", "3.2", "3.1", "3.0" ]
15-
rails: [ "7.0", "6.1"]
15+
rails: [ "7.1", "7.0", "6.1"]
1616
include:
1717
- { ruby: "2.7", rails: "6.0" }
1818
- { ruby: "2.7", rails: "5.2" }

test/gemfiles/rails-7.1.gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
gemspec path: "../.."
3+
gem "activerecord", "~> 7.1.0"

test/integration/mysql_integration_test.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ class AfterPersistedTest < MySQLIntegrationTest
106106
end
107107

108108
test "can't be used to inject SQL using .where" do
109-
assert_raises MySQLBinUUID::InvalidUUID do
109+
expected_error = ActiveRecord.version.to_s < "7.1" ? MySQLBinUUID::InvalidUUID : ActiveRecord::StatementInvalid
110+
assert_raises(expected_error) do
110111
MyUuidModel.where(the_uuid: "' OR ''='").first
111112
end
112113
end

0 commit comments

Comments
 (0)