Skip to content

Fix compatiblity with net-ssh 4.0+ #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion test/test_download.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def test_download_file_should_transfer_remote_to_local_buffer

def test_download_directory_to_buffer_should_fail
expect_sftp_session :server_version => 3
assert_raises(ArgumentError) { sftp.download("/path/to/remote", StringIO.new, :recursive => true) }
Net::SSH::Test::Extensions::IO.with_test_extension do
assert_raises(ArgumentError) { sftp.download("/path/to/remote", StringIO.new, :recursive => true) }
end
end

private
Expand Down
6 changes: 4 additions & 2 deletions test/test_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,10 @@ def test_unblock_bang_should_block_and_return_response

def assert_not_implemented(server_version, command, *args)
expect_sftp_session :server_version => 1
sftp.connect!
assert_raises(NotImplementedError) { sftp.send(command, *args) }
Net::SSH::Test::Extensions::IO.with_test_extension do
sftp.connect!
assert_raises(NotImplementedError) { sftp.send(command, *args) }
end
end

def assert_command_with_callback(command, *args)
Expand Down