Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
satmandu authored and hsbt committed Jan 20, 2023
1 parent f0ab90f commit 1e32bd5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/fileutils/test_fileutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,14 @@ def test_install_pathname
install Pathname.new('tmp/a'), 'tmp/b'
rm_f 'tmp/a'; touch 'tmp/a'
install Pathname.new('tmp/a'), Pathname.new('tmp/b')
my_rm_rf 'tmp/new_dir_end_with_slash'
install Pathname.new('tmp/a'), 'tmp/new_dir_end_with_slash/'
my_rm_rf 'tmp/new_dir_end_with_slash'
my_rm_rf 'tmp/new_dir'
install Pathname.new('tmp/a'), 'tmp/new_dir/a'
my_rm_rf 'tmp/new_dir'
install Pathname.new('tmp/a'), 'tmp/new_dir/new_dir_end_with_slash/'
my_rm_rf 'tmp/new_dir'
rm_f 'tmp/a'
touch 'tmp/a'
touch 'tmp/b'
Expand Down

0 comments on commit 1e32bd5

Please sign in to comment.