summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/strscan/test_ractor.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/strscan/test_ractor.rb b/test/strscan/test_ractor.rb
index 71e8111711..a13fd8fd13 100644
--- a/test/strscan/test_ractor.rb
+++ b/test/strscan/test_ractor.rb
@@ -8,6 +8,10 @@ class TestStringScannerRactor < Test::Unit::TestCase
def test_ractor
assert_in_out_err([], <<-"end;", ["stra", " ", "strb", " ", "strc"], [])
+ class Ractor
+ alias value take unless method_defined? :value # compat with Ruby 3.4 and olders
+ end
+
require "strscan"
$VERBOSE = nil
r = Ractor.new do