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

Version Path
net-ssh-net-ssh-2.0.13 test/authentication/methods/common.rb
net-ssh-net-ssh-2.0.14 test/authentication/methods/common.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/net-ssh-2.9.1/test/authentication/methods/common.rb
net-ssh-2.9.1 test/authentication/methods/common.rb
net-ssh-2.9.0 test/authentication/methods/common.rb
depengine-0.0.31 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.31 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.30 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.30 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.29 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.29 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.28 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.28 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.27 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.27 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.26 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.26 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.25 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.25 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.24 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb