From f0a3eb3d91b1493d4a14bfac885a98e1580ebb1e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Feb 2026 13:32:32 +0000 Subject: [PATCH 1/5] Bump minitest from 5.27.0 to 6.0.2 in the bundler group Bumps the bundler group with 1 update: [minitest](https://github.com/minitest/minitest). Updates `minitest` from 5.27.0 to 6.0.2 - [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc) - [Commits](https://github.com/minitest/minitest/compare/v5.27.0...v6.0.2) --- updated-dependencies: - dependency-name: minitest dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: bundler ... Signed-off-by: dependabot[bot] --- Gemfile | 2 +- Gemfile.lock | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index a2bdebb..11dc233 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,7 @@ source "https://rubygems.org" gem "rake" gem "base64" gem "dotenv" -gem "minitest", "~> 5.27" +gem "minitest", "~> 6.0" gem "minitest-reporters" gem "minitest-mock_expectations" gem "vcr" diff --git a/Gemfile.lock b/Gemfile.lock index 32f8642..a92c3a5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -19,6 +19,7 @@ GEM docile (1.4.1) domain_name (0.6.20240107) dotenv (3.2.0) + drb (2.2.3) ffi (1.17.3) ffi-compiler (1.3.2) ffi (>= 1.15.5) @@ -35,14 +36,17 @@ GEM llhttp-ffi (0.5.1) ffi-compiler (~> 1.0) rake (~> 13.0) - minitest (5.27.0) + minitest (6.0.2) + drb (~> 2.0) + prism (~> 1.5) minitest-mock_expectations (1.2.0) minitest-reporters (1.7.1) ansi builder minitest (>= 5.0) ruby-progressbar - public_suffix (7.0.0) + prism (1.9.0) + public_suffix (7.0.2) rake (13.3.1) rexml (3.4.4) ruby-progressbar (1.13.0) @@ -67,7 +71,7 @@ PLATFORMS DEPENDENCIES base64 dotenv - minitest (~> 5.27) + minitest (~> 6.0) minitest-mock_expectations minitest-reporters paysafe! From 0e01fa503b5535c8952026b4e8c589b85bd0b23b Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Tue, 24 Feb 2026 10:28:30 -0500 Subject: [PATCH 2/5] Remove unused minitest-mock_expectations gem This helps avoid an error when running the test suite with minitest 6 so we can upgrade. Since we aren't using the gem currently I'd rather that it be removed for now. ``` /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require': cannot load such file -- minitest/mock (LoadError) from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/gems/3.4.0/gems/minitest-mock_expectations-1.2.0/lib/minitest/mock_expectations/assertions.rb:3:in '' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/gems/3.4.0/gems/minitest-mock_expectations-1.2.0/lib/minitest/mock_expectations.rb:2:in '' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require' from /Users/j.julio/Projects/paysafe/test/test_helper.rb:16:in '' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require' from /Users/j.julio/Projects/paysafe/test/birth_date_test.rb:1:in '' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/gems/3.4.0/gems/rake-13.3.1/lib/rake/rake_test_loader.rb:21:in 'block in
' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/gems/3.4.0/gems/rake-13.3.1/lib/rake/rake_test_loader.rb:6:in 'Array#select' from /Users/j.julio/.rbenv/versions/3.4.8/lib/ruby/gems/3.4.0/gems/rake-13.3.1/lib/rake/rake_test_loader.rb:6:in '
' rake aborted! Command failed with status (1) /Users/j.julio/.rbenv/versions/3.4.8/bin/bundle:25:in '
' Tasks: TOP => test (See full trace by running task with --trace) ``` --- Gemfile | 1 - Gemfile.lock | 6 ++---- test/test_helper.rb | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 11dc233..446d2a1 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,6 @@ gem "base64" gem "dotenv" gem "minitest", "~> 6.0" gem "minitest-reporters" -gem "minitest-mock_expectations" gem "vcr" gem "webmock" diff --git a/Gemfile.lock b/Gemfile.lock index a92c3a5..bcfaad2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -20,7 +20,7 @@ GEM domain_name (0.6.20240107) dotenv (3.2.0) drb (2.2.3) - ffi (1.17.3) + ffi (1.17.3-arm64-darwin) ffi-compiler (1.3.2) ffi (>= 1.15.5) rake @@ -39,7 +39,6 @@ GEM minitest (6.0.2) drb (~> 2.0) prism (~> 1.5) - minitest-mock_expectations (1.2.0) minitest-reporters (1.7.1) ansi builder @@ -66,13 +65,12 @@ GEM hashdiff (>= 0.4.0, < 2.0.0) PLATFORMS - ruby + arm64-darwin-25 DEPENDENCIES base64 dotenv minitest (~> 6.0) - minitest-mock_expectations minitest-reporters paysafe! rake diff --git a/test/test_helper.rb b/test/test_helper.rb index e599ec1..b3d1643 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -12,7 +12,6 @@ require 'base64' require 'minitest/autorun' require 'minitest/reporters' -require 'minitest/mock_expectations' require 'webmock/minitest' require 'vcr' require 'dotenv/load' From c881c472ad3a7dfa5caa55aa22d88e0008bf7cd0 Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Tue, 24 Feb 2026 10:30:22 -0500 Subject: [PATCH 3/5] Add cgi in test for http-cookie Ruby 4.0 failure When running the test suite on Ruby 4.0 it fails because http-cookie depends on cgi but doesn't declare it as a dependency. ``` /home/runner/work/paysafe/paysafe/vendor/bundle/ruby/4.0.0/gems/http-cookie-1.1.0/lib/http/cookie.rb:9: warning: CGI library is removed from Ruby 4.0. Please use cgi/escape instead for CGI.escape and CGI.unescape features. If you need to use the full features of CGI library, Please install cgi gem. ``` Until then, we'll install it for dev/test so our test suite will run on Ruby 4.0. --- Gemfile | 1 + Gemfile.lock | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Gemfile b/Gemfile index 446d2a1..119703b 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,7 @@ gem "minitest", "~> 6.0" gem "minitest-reporters" gem "vcr" gem "webmock" +gem "cgi" # needed for Ruby 4.0 until http-cookie gem adds dependency group :test do gem "simplecov", require: false diff --git a/Gemfile.lock b/Gemfile.lock index bcfaad2..166917f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,6 +13,7 @@ GEM base64 (0.3.0) bigdecimal (4.0.1) builder (3.3.0) + cgi (0.5.1) crack (1.0.1) bigdecimal rexml @@ -69,6 +70,7 @@ PLATFORMS DEPENDENCIES base64 + cgi dotenv minitest (~> 6.0) minitest-reporters From f1675cd5d6ecb70b59f4a0e1ba0f766e75cd3a6b Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Tue, 24 Feb 2026 10:31:59 -0500 Subject: [PATCH 4/5] Temp minitest-reporters fix for minitest v6 We can remove this block when there is a new release of minitest-reporters gem that has support for minitest v6. In the meantime, we'll include this fix so we have the expected reporter output. The test suite still runs fine without this but the reporter output is not the same. --- test/test_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index b3d1643..31da649 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -16,6 +16,12 @@ require 'vcr' require 'dotenv/load' +# Remove this register_plugin when minitest-reporters is released with: +# https://github.com/minitest-reporters/minitest-reporters/pull/366 +# https://github.com/minitest-reporters/minitest-reporters/pull/366#issuecomment-3731951673 +require 'minitest/minitest_reporter_plugin' +Minitest.register_plugin :minitest_reporter + Minitest::Reporters.use!([Minitest::Reporters::SpecReporter.new]) VCR.configure do |c| From 51a44db268bd043f55f025ddb4bb5ad3ecdae622 Mon Sep 17 00:00:00 2001 From: Javier Julio Date: Tue, 24 Feb 2026 10:35:52 -0500 Subject: [PATCH 5/5] Update platform from arm64-darwin-25 to ruby I don't understand how this gets set or if its updated ever. On jackpocket this is set to ruby so we'll do the same here. This will avoid an error when running tests on CI when it works locally. --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 166917f..4f378a1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -66,7 +66,7 @@ GEM hashdiff (>= 0.4.0, < 2.0.0) PLATFORMS - arm64-darwin-25 + ruby DEPENDENCIES base64