blob: a138fcdb5573c65934a0c7bd5ff5b7b588172c54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- test/test_download.rb 2018-01-22 02:08:00.000013728 +0100
+++ test/test_download.rb.1 2018-01-22 02:11:49.820014276 +0100
@@ -70,12 +70,12 @@
end
error = nil
- assert_scripted do
- begin
- scp.download!("/path/to/remote.txt")
- rescue
- error = $!
- end
+ Net::SSH::Test::Extensions::IO.with_test_extension do
+ begin
+ scp.download!("/path/to/remote.txt")
+ rescue
+ error = $!
+ end
end
assert_equal Net::SCP::Error, error.class
assert_equal "SCP did not finish successfully (1): File not found: /path/to/remote.txt\n", error.message
|