Skip to content

Commit 61332c6

Browse files
committed
Fixed tests for ccf4298
1 parent 253b324 commit 61332c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_upload.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ def test_upload_directory_should_mirror_directory_structure_remotely
110110
prepare_directory
111111

112112
assert_scripted_command do
113-
sftp.upload("/path/to/local", "/path/to/remote")
113+
sftp.upload("/path/to/local", "/path/to/remote", :create_dir => true)
114114
end
115115
end
116116

117117
def test_upload_directory_with_handler_should_report_progress
118118
prepare_directory
119119

120120
assert_scripted_command do
121-
sftp.upload("/path/to/local", "/path/to/remote") { |*args| record_progress(args) }
121+
sftp.upload("/path/to/local", "/path/to/remote", :create_dir => true) { |*args| record_progress(args) }
122122
end
123123

124124
assert_progress_reported_open(:remote => "/path/to/remote/file1")
@@ -230,4 +230,4 @@ def expect_file_transfer(local, remote, data)
230230

231231
expect_file(local, data)
232232
end
233-
end
233+
end

0 commit comments

Comments
 (0)