Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/fileutils/test_fileutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,11 @@ def test_cp_lr
def test_mv
check_singleton :mv

File.write('tmp/source', "contents\n")
assert_equal(0, FileUtils.mv('tmp/source', 'tmp/destination'))
assert_file_not_exist('tmp/source')
assert_equal("contents\n", File.read('tmp/destination'))

mkdir 'tmp/dest'
TARGETS.each do |fname|
cp fname, 'tmp/mvsrc'
Expand Down Expand Up @@ -1989,6 +1994,7 @@ def test_mkpath

def test_move
check_singleton :move
assert_equal(FileUtils.method(:mv), FileUtils.method(:move))
end

def test_rm_rf
Expand Down
Loading