diff --git a/test/stdlib/FileUtils_test.rb b/test/stdlib/FileUtils_test.rb index d617aafce..55446048b 100644 --- a/test/stdlib/FileUtils_test.rb +++ b/test/stdlib/FileUtils_test.rb @@ -319,10 +319,14 @@ def test_ln_s FileUtils, :ln_s, "src", "dest" assert_send_type "(ToStr, ToStr, noop: bool) -> void", FileUtils, :ln_s, ToStr.new("src"), ToStr.new("dest"), noop: true + assert_send_type "(ToPath, ToPath, noop: bool) -> void", + FileUtils, :ln_sr, ToPath.new("src"), ToPath.new("dest"), noop: true assert_send_type "(Array[String | ToStr | ToPath], String, noop: bool) -> void", FileUtils, :ln_s, ["src", ToStr.new("src"), ToPath.new("src")], "dest_dir", noop: true assert_send_type "(ToPath, ToPath, force: nil, noop: bool, verbose: bool, target_directory: bool, relative: bool) -> void", FileUtils, :ln_s, ToPath.new("src"), ToPath.new("dest"), force: nil, noop: true, verbose: false, relative: false, target_directory: false + assert_send_type "(ToPath, ToPath, force: nil, noop: bool, verbose: bool, target_directory: bool, relative: bool) -> void", + FileUtils, :ln_s, ToPath.new("src"), ToPath.new("dest"), force: nil, noop: true, verbose: false, relative: true, target_directory: false end end @@ -360,8 +364,8 @@ def test_ln_sr FileUtils, :ln_sr, ToStr.new("src"), ToStr.new("dest"), noop: true assert_send_type "(ToPath, ToPath, noop: bool) -> void", FileUtils, :ln_sr, ToPath.new("src"), ToPath.new("dest"), noop: true - assert_send_type "(Array[String | ToStr | ToPath], String, noop: bool, verbose: bool, target_directory: false) -> void", - FileUtils, :ln_sr, ["src", ToStr.new("src"), ToStr.new("src")], "dest_dir", noop: true, verbose: false, target_directory: false + assert_send_type "(Array[String | ToStr | ToPath], String, noop: bool, verbose: bool) -> void", + FileUtils, :ln_sr, ["src", ToStr.new("src"), ToStr.new("src")], "dest_dir", noop: true, verbose: false end end