Sha256: a7af78b2d06d2bcf0144ad21e768a522cf61a21524386c62c06293f45b9add42

Contents?: true

Size: 739 Bytes

Versions: 145

Compression:

Stored size: 739 Bytes

Contents

require 'common'
require 'protocol/01/test_base'

class Protocol::V02::TestBase < Protocol::V01::TestBase
  def test_version
    assert_equal 2, @base.version
  end

  undef test_rename_should_raise_not_implemented_error

  def test_rename_should_send_rename_packet
    @session.expects(:send_packet).with(FXP_RENAME, :long, 0, :string, "/old/file", :string, "/new/file")
    assert_equal 0, @base.rename("/old/file", "/new/file")
  end

  def test_rename_should_ignore_flags_parameter
    @session.expects(:send_packet).with(FXP_RENAME, :long, 0, :string, "/old/file", :string, "/new/file")
    assert_equal 0, @base.rename("/old/file", "/new/file", 1234)
  end

  private

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

Version data entries

145 entries across 108 versions & 9 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/net-sftp-2.1.2/test/protocol/02/test_base.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/net-sftp-2.1.2/test/protocol/02/test_base.rb
depengine-0.0.31 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.31 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.30 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.30 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.29 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.29 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.28 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.28 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.27 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.27 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.26 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.26 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.25 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.25 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.24 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.24 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.23 etc/isolate/ruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb
depengine-0.0.23 etc/isolate/jruby-1.8/gems/net-sftp-2.0.4/test/protocol/02/test_base.rb