diff options
author | Remco de Man <gitlab@remcodeman.nl> | 2023-01-05 10:12:09 +0100 |
---|---|---|
committer | Remco de Man <gitlab@remcodeman.nl> | 2023-01-05 10:12:09 +0100 |
commit | efbaadb5598217cd215ece30bd7243bea4128ef2 (patch) | |
tree | cf54ceaed282ef4c2c461457c25a59149437db91 /test/start/test_options.rb | |
parent | 8a176a6ea0db1b59a21834df806a257a0b76e943 (diff) | |
download | net-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.rb | 7 |
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' } |