Sha256: 1cbc150c490c98605560d6e6538c06a7dccfd4f856bab255987cb41399a42880

Contents?: true

Size: 788 Bytes

Versions: 145

Compression:

Stored size: 788 Bytes

Contents

require 'common'
require 'protocol/02/test_base'

class Protocol::V03::TestBase < Protocol::V02::TestBase
  def test_version
    assert_equal 3, @base.version
  end

  undef test_readlink_should_raise_not_implemented_error
  undef test_symlink_should_raise_not_implemented_error

  def test_readlink_should_send_readlink_packet
    @session.expects(:send_packet).with(FXP_READLINK, :long, 0, :string, "/path/to/link")
    assert_equal 0, @base.readlink("/path/to/link")
  end

  def test_symlink_should_send_symlink_packet
    @session.expects(:send_packet).with(FXP_SYMLINK, :long, 0, :string, "/path/to/link", :string, "/path/to/file")
    assert_equal 0, @base.symlink("/path/to/link", "/path/to/file")
  end

  private

    def driver
      Net::SFTP::Protocol::V03::Base
    end
end

Version data entries

145 entries across 108 versions & 9 rubygems

Version Path
net-sftp-2.1.2 test/protocol/03/test_base.rb
depengine-0.0.12 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.12 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.11 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.11 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.10 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.10 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.9 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.9 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.8 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.8 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.7 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.7 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.5 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.5 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.4 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.4 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.3 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.3 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb
depengine-0.0.2 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/03/test_base.rb