Skip to content

Commit 1e32bd5

Browse files
satmanduhsbt
authored andcommitted
Add tests
1 parent f0ab90f commit 1e32bd5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/fileutils/test_fileutils.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,14 @@ def test_install_pathname
12371237
install Pathname.new('tmp/a'), 'tmp/b'
12381238
rm_f 'tmp/a'; touch 'tmp/a'
12391239
install Pathname.new('tmp/a'), Pathname.new('tmp/b')
1240+
my_rm_rf 'tmp/new_dir_end_with_slash'
1241+
install Pathname.new('tmp/a'), 'tmp/new_dir_end_with_slash/'
1242+
my_rm_rf 'tmp/new_dir_end_with_slash'
1243+
my_rm_rf 'tmp/new_dir'
1244+
install Pathname.new('tmp/a'), 'tmp/new_dir/a'
1245+
my_rm_rf 'tmp/new_dir'
1246+
install Pathname.new('tmp/a'), 'tmp/new_dir/new_dir_end_with_slash/'
1247+
my_rm_rf 'tmp/new_dir'
12401248
rm_f 'tmp/a'
12411249
touch 'tmp/a'
12421250
touch 'tmp/b'

0 commit comments

Comments
 (0)