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