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
depengine-0.0.24 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.23 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.23 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.22 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.22 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.21 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.21 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.20 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.20 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.19 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.19 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
net-ssh-2.8.0 test/authentication/methods/common.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/net-ssh-2.6.8/test/authentication/methods/common.rb
net-ssh-2.7.0 test/authentication/methods/common.rb
depengine-0.0.18 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.18 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.17 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.17 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.16 etc/isolate/ruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb
depengine-0.0.16 etc/isolate/jruby-1.8/gems/net-ssh-2.0.23/test/authentication/methods/common.rb