From 125bc1ea1a05e42896a7b015e264edbbcc3ec266 Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Fri, 22 May 2026 07:08:06 +0300 Subject: [PATCH] Fix CI on `ruby-head` --- .github/workflows/test.yml | 5 +++++ spec/actor_spec.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a35a72..a2a2aac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,11 @@ jobs: matrix: ruby: ["3.2", "3.3", "3.4", "4.0", head, jruby-10.0.0.1] + env: + # Released Bundler is broken on ruby-head due to ruby/ruby#16895. + # Use Ruby's bundled Bundler until rubygems/rubygems#9529 is released. + BUNDLER_VERSION: ${{ matrix.ruby == 'head' && '0' || '' }} + steps: - name: Checkout repository uses: actions/checkout@v6 diff --git a/spec/actor_spec.rb b/spec/actor_spec.rb index c39c310..3aae709 100644 --- a/spec/actor_spec.rb +++ b/spec/actor_spec.rb @@ -785,7 +785,7 @@ def call; end expect { actor_class.call(per_page: "6") } .to raise_error( ServiceActor::ArgumentError, - /\AThe "per_page" input on ".+" has an error in the code inside "be_in_range": \[ArgumentError\] comparison of String with 3 failed\z/, + /\AThe "per_page" input on ".+" has an error in the code inside "be_in_range": \[ArgumentError\] comparison of String with 3 failed(: comparator returned nil)?\z/, ) end end