public
Description: Pure Ruby implementation of the SCP protocol
Homepage: http://rubyforge.org/projects/net-ssh
Clone URL: git://github.com/jamis/net-scp.git
fix tests broken by the change to the progress reporting API
jamis (author)
Fri Apr 25 20:35:24 -0700 2008
commit  35217659d6b7f1d95d9aa0d30f1532fcead8651e
tree    a64b0acbc90b2cef89e417f25115e1984b302d6f
parent  62417e3f74aabceabd1fc04c1c90c381895b8955
...
45
46
47
48
 
49
50
51
...
45
46
47
 
48
49
50
51
0
@@ -45,7 +45,7 @@ class TestDownload < Net::SCP::TestCase
0
     end
0
 
0
     calls = []
0
- progress = Proc.new { |*args| calls << args }
0
+ progress = Proc.new { |ch, *args| calls << args }
0
 
0
     assert_scripted do
0
       scp.download!("/path/to/remote.txt", "/path/to/local.txt", &progress)
...
49
50
51
52
 
53
54
55
...
49
50
51
 
52
53
54
55
0
@@ -49,7 +49,7 @@ class TestUpload < Net::SCP::TestCase
0
     end
0
 
0
     calls = []
0
- progress = Proc.new do |name, sent, total|
0
+ progress = Proc.new do |ch, name, sent, total|
0
       calls << [name, sent, total]
0
     end
0
 

Comments

    No one has commented yet.