diff options
-rw-r--r-- | test/pathname/test_ractor.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pathname/test_ractor.rb b/test/pathname/test_ractor.rb index 340692df79..f06b7501f3 100644 --- a/test/pathname/test_ractor.rb +++ b/test/pathname/test_ractor.rb @@ -9,6 +9,10 @@ class TestPathnameRactor < Test::Unit::TestCase def test_ractor_shareable assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") + class Ractor + alias value take + end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders + begin; $VERBOSE = nil require "pathname" @@ -19,4 +23,3 @@ class TestPathnameRactor < Test::Unit::TestCase end; end end - |