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
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/net-ssh-2.9.1/test/authentication/methods/common.rb
net-ssh-2.9.4 test/authentication/methods/common.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/net-ssh-3.0.2/test/authentication/methods/common.rb
net-ssh-3.0.2 test/authentication/methods/common.rb
net-ssh-3.0.2.rc1 test/authentication/methods/common.rb
net-ssh-2.9.4.rc1 test/authentication/methods/common.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/net-ssh-3.0.1/test/authentication/methods/common.rb
net-ssh-3.0.1 test/authentication/methods/common.rb
net-ssh-3.0.1.rc1 test/authentication/methods/common.rb
net-ssh-3.0.0.rc1 test/authentication/methods/common.rb
net-ssh-2.10.1.rc2 test/authentication/methods/common.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/net-ssh-2.9.2/test/authentication/methods/common.rb
net-ssh-2.10.1.rc1 test/authentication/methods/common.rb
net-ssh-2.10.0.beta2 test/authentication/methods/common.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/net-ssh-2.9.2/test/authentication/methods/common.rb
net-ssh-2.10.0.beta1 test/authentication/methods/common.rb
net-ssh-2.9.3.beta1 test/authentication/methods/common.rb
net-ssh-2.9.2 test/authentication/methods/common.rb
net-ssh-2.9.2.rc3 test/authentication/methods/common.rb
net-ssh-2.9.2.rc2 test/authentication/methods/common.rb