summaryrefslogtreecommitdiff
path: root/test/pathname/test_ractor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathname/test_ractor.rb')
-rw-r--r--test/pathname/test_ractor.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/pathname/test_ractor.rb b/test/pathname/test_ractor.rb
index f06b7501f3..737e4a4111 100644
--- a/test/pathname/test_ractor.rb
+++ b/test/pathname/test_ractor.rb
@@ -20,6 +20,11 @@ class TestPathnameRactor < Test::Unit::TestCase
x.join(Pathname("b"), Pathname("c"))
end
assert_equal(Pathname("a/b/c"), r.value)
+
+ r = Ractor.new Pathname("a") do |a|
+ Pathname("b").relative_path_from(a)
+ end
+ assert_equal(Pathname("../b"), r.value)
end;
end
end