Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions test/pathname/test_ractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,14 @@
require "pathname"

class TestPathnameRactor < Test::Unit::TestCase
def setup
omit unless defined? Ractor
end

def test_ractor_shareable
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
begin;
$VERBOSE = nil
require "pathname"
if respond_to?(:ractor)
ractor
def test_shareable
r = Ractor.new Pathname("a") do |x|
x.join(Pathname("b"), Pathname("c"))
end
assert_equal(Pathname("a/b/c"), r.take)
end;
end
end
end