Patch net-ssh story helpers for 2.8.0
This commit is contained in:
parent
4a9a936d50
commit
4d7e11ceeb
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user