diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4307f11..7b7c61b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,11 +8,11 @@ concurrency: jobs: tests: - continue-on-error: true strategy: + fail-fast: false matrix: ruby: [ "3.3", "3.2", "3.1", "3.0" ] - rails: [ "7.0", "6.1"] + rails: [ "7.1", "7.0", "6.1"] include: - { ruby: "2.7", rails: "6.0" } - { ruby: "2.7", rails: "5.2" } diff --git a/test/gemfiles/rails-7.1.gemfile b/test/gemfiles/rails-7.1.gemfile new file mode 100644 index 0000000..f43c417 --- /dev/null +++ b/test/gemfiles/rails-7.1.gemfile @@ -0,0 +1,3 @@ +source "https://rubygems.org" +gemspec path: "../.." +gem "activerecord", "~> 7.1.0" diff --git a/test/integration/mysql_integration_test.rb b/test/integration/mysql_integration_test.rb index de1ce75..6c7623f 100644 --- a/test/integration/mysql_integration_test.rb +++ b/test/integration/mysql_integration_test.rb @@ -106,7 +106,8 @@ class AfterPersistedTest < MySQLIntegrationTest end test "can't be used to inject SQL using .where" do - assert_raises MySQLBinUUID::InvalidUUID do + expected_error = ActiveRecord.version.to_s < "7.1" ? MySQLBinUUID::InvalidUUID : ActiveRecord::StatementInvalid + assert_raises(expected_error) do MyUuidModel.where(the_uuid: "' OR ''='").first end end