summaryrefslogtreecommitdiff
path: root/test/test_config.rb
diff options
context:
space:
mode:
authorMiklos Fazekas <mfazekas@szemafor.com>2019-03-06 19:29:45 +0100
committerMiklos Fazekas <mfazekas@szemafor.com>2019-03-06 19:30:56 +0100
commit3305b29c013ba7bd6cd422e21ba80d4ff4ba3907 (patch)
tree00539c0552bc3578ec2f2e3e2acb708fb785af51 /test/test_config.rb
parent3eb4a3e2729273343a2cef4ac3e0650fefec571c (diff)
downloadnet-ssh-3305b29c013ba7bd6cd422e21ba80d4ff4ba3907.tar.gz
Read check host ip from config if present
Diffstat (limited to 'test/test_config.rb')
-rw-r--r--test/test_config.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_config.rb b/test/test_config.rb
index d44fbce..b85f3c3 100644
--- a/test/test_config.rb
+++ b/test/test_config.rb
@@ -55,6 +55,16 @@ class TestConfig < NetSSHTest
end
end
+ def test_check_host_ip
+ data = %q{
+ CheckHostIP no
+ }
+ with_config_from_data data do |f|
+ config = Net::SSH::Config.load(f, 'foo')
+ assert_equal false, config['check_host_ip']
+ end
+ end
+
def test_load_with_regex_chars
data = %q{
Host |