diff --git a/spec/bundled_gems_spec.rb b/spec/bundled_gems_spec.rb index 46443ea250..77eb9c6380 100644 --- a/spec/bundled_gems_spec.rb +++ b/spec/bundled_gems_spec.rb @@ -128,7 +128,7 @@ RSpec.describe "bundled_gems.rb" do require "fiddle/import" RUBY - expect(err).to include(/fiddle\/import is found in fiddle, which will no longer be part of the default gems starting from Ruby 3\.5\.0/) + expect(err).to include(/fiddle\/import is found in fiddle, (.*) part of the default gems starting from Ruby 3\.5\.0/) expect(err).to include(/-e:7/) end