Skip to content

Commit 8329ac4

Browse files
committed
Pathname#mkpath and Pathname#rmtree returns self from Ruby 3.4
1 parent 8afce66 commit 8329ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/stdlib/Pathname_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def test_mkpath
461461
Dir.mktmpdir do |dir|
462462
dir = Pathname(dir)
463463

464-
assert_send_type '() -> nil',
464+
assert_send_type '() -> Pathname',
465465
dir + 'a/b/c', :mkpath
466466
end
467467
end
@@ -642,7 +642,7 @@ def test_rmtree
642642
Dir.mktmpdir do |dir|
643643
target = Pathname(dir).join('target')
644644
target.mkdir
645-
assert_send_type '() -> void',
645+
assert_send_type '() -> Pathname',
646646
target, :rmtree
647647
end
648648
end

0 commit comments

Comments
 (0)