summaryrefslogtreecommitdiff
path: root/dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch')
-rw-r--r--dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch b/dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch
new file mode 100644
index 000000000000..73c34359afc2
--- /dev/null
+++ b/dev-ruby/net-scp/files/net-scp-1.2.1-fix-upload_tests.patch
@@ -0,0 +1,14 @@
+--- test/test_upload.rb 2018-01-22 08:15:30.996002204 +0100
++++ test/test_upload.rb.1 2018-01-22 08:18:09.328002581 +0100
+@@ -155,8 +155,9 @@
+ expect_scp_session("-t /path/to/remote") do |channel|
+ channel.gets_ok
+ end
+-
+- assert_raises(Net::SCP::Error) { scp.upload!("/path/to/local", "/path/to/remote") }
++ Net::SSH::Test::Extensions::IO.with_test_extension do
++ assert_raises(Net::SCP::Error) { scp.upload!("/path/to/local", "/path/to/remote") }
++ end
+ end
+
+ def test_upload_empty_directory_should_create_directory_and_finish