diff --git a/test/pathname/test_ractor.rb b/test/pathname/test_ractor.rb index 340692d..f06b750 100644 --- a/test/pathname/test_ractor.rb +++ b/test/pathname/test_ractor.rb @@ -9,6 +9,10 @@ def setup 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 @@ def test_ractor_shareable end; end end -