aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-02-16 11:21:50 +0900
committergit <svn-admin@ruby-lang.org>2024-02-16 05:38:42 +0000
commitcf16a70448a657cbcd5fdcb6897c6025807e31b9 (patch)
tree54a8cad05aeb9205097720a420f8586556c7c7bf
parent7b568b1f78e196ef5b130b09552e40013c82372b (diff)
downloadruby-cf16a70448a657cbcd5fdcb6897c6025807e31b9.tar.gz
[rubygems/rubygems] Relax regexp for Ruby 3.3 or before
https://github.com/rubygems/rubygems/commit/89d37e670c
-rw-r--r--test/rubygems/test_rubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rubygems/test_rubygems.rb b/test/rubygems/test_rubygems.rb
index 4f937ca6b8..ec195b65cd 100644
--- a/test/rubygems/test_rubygems.rb
+++ b/test/rubygems/test_rubygems.rb
@@ -17,7 +17,7 @@ class GemTest < Gem::TestCase
output = Gem::Util.popen(*ruby_with_rubygems_and_fake_operating_system_in_load_path(path), "-e", "'require \"rubygems\"'", { err: [:child, :out] }).strip
assert !$?.success?
- assert_includes output, "undefined local variable or method 'intentionally_not_implemented_method'"
+ assert_match(/undefined local variable or method [`']intentionally_not_implemented_method'/, output)
assert_includes output, "Loading the #{operating_system_rb_at(path)} file caused an error. " \
"This file is owned by your OS, not by rubygems upstream. " \
"Please find out which OS package this file belongs to and follow the guidelines from your OS to report " \