Patch net-ssh story helpers for 2.8.0

This commit is contained in:
Thibault Jouan 2014-03-31 08:24:34 +00:00
parent 4a9a936d50
commit 4d7e11ceeb

View File

@ -1,6 +1,21 @@
module NetSSHStoryHelpers require 'net/ssh/test'
require 'net/ssh/test'
if Net::SSH::Version::CURRENT >= Net::SSH::Version[2, 8, 0]
module Net
module SSH
module Test
class Socket
def open(host, port, connections_options = nil)
@host, @port = host, port
self
end
end
end
end
end
end
module NetSSHStoryHelpers
include Net::SSH::Test include Net::SSH::Test
def story_with_new_channel def story_with_new_channel