Sha256: 50a895c34b5284866fcbd4ccbc856a33cfd52c8c0f3ee08ab1e80c7796ef8914
Contents?: true
Size: 620 Bytes
Versions: 243
Compression:
Stored size: 620 Bytes
Contents
module Authentication; module Methods module Common include Net::SSH::Authentication::Constants private def socket(options={}) @socket ||= stub("socket", :client_name => "me.ssh.test") end def transport(options={}) @transport ||= MockTransport.new(options.merge(:socket => socket)) end def session(options={}) @session ||= begin sess = stub("auth-session", :logger => nil, :transport => transport(options)) def sess.next_message transport.next_message end sess end end end end; end
Version data entries
243 entries across 203 versions & 28 rubygems