summaryrefslogtreecommitdiff
path: root/test/start/test_options.rb
diff options
context:
space:
mode:
authorRemco de Man <gitlab@remcodeman.nl>2023-01-05 10:12:09 +0100
committerRemco de Man <gitlab@remcodeman.nl>2023-01-05 10:12:09 +0100
commitefbaadb5598217cd215ece30bd7243bea4128ef2 (patch)
treecf54ceaed282ef4c2c461457c25a59149437db91 /test/start/test_options.rb
parent8a176a6ea0db1b59a21834df806a257a0b76e943 (diff)
downloadnet-ssh-efbaadb5598217cd215ece30bd7243bea4128ef2.tar.gz
Accept pubkey_algorithms option when starting a new connection
Diffstat (limited to 'test/start/test_options.rb')
-rw-r--r--test/start/test_options.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/start/test_options.rb b/test/start/test_options.rb
index 43a88a7..601f3d5 100644
--- a/test/start/test_options.rb
+++ b/test/start/test_options.rb
@@ -60,6 +60,13 @@ module NetSSH
end
end
+ def test_start_should_accept_pubkey_algorithms_option
+ assert_nothing_raised do
+ options = { pubkey_algorithms: %w[ssh-rsa] }
+ Net::SSH.start('localhost', 'testuser', options)
+ end
+ end
+
def test_start_should_accept_remote_user_option
assert_nothing_raised do
options = { remote_user: 'foo' }