File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,9 @@ def test_download_file_should_transfer_remote_to_local_buffer
139
139
140
140
def test_download_directory_to_buffer_should_fail
141
141
expect_sftp_session :server_version => 3
142
- assert_raises ( ArgumentError ) { sftp . download ( "/path/to/remote" , StringIO . new , :recursive => true ) }
142
+ Net ::SSH ::Test ::Extensions ::IO . with_test_extension do
143
+ assert_raises ( ArgumentError ) { sftp . download ( "/path/to/remote" , StringIO . new , :recursive => true ) }
144
+ end
143
145
end
144
146
145
147
private
Original file line number Diff line number Diff line change @@ -660,8 +660,10 @@ def test_unblock_bang_should_block_and_return_response
660
660
661
661
def assert_not_implemented ( server_version , command , *args )
662
662
expect_sftp_session :server_version => 1
663
- sftp . connect!
664
- assert_raises ( NotImplementedError ) { sftp . send ( command , *args ) }
663
+ Net ::SSH ::Test ::Extensions ::IO . with_test_extension do
664
+ sftp . connect!
665
+ assert_raises ( NotImplementedError ) { sftp . send ( command , *args ) }
666
+ end
665
667
end
666
668
667
669
def assert_command_with_callback ( command , *args )
You can’t perform that action at this time.
0 commit comments