summaryrefslogtreecommitdiff
path: root/test/test_config.rb
diff options
context:
space:
mode:
authorMiklos Fazekas <mfazekas@szemafor.com>2019-03-07 21:50:06 +0100
committerMiklos Fazekas <mfazekas@szemafor.com>2019-03-07 21:58:52 +0100
commited65892430018038f47076fd058e0669a3fd680c (patch)
treed77f56f17f2681cdd645bf32f0c1f84c9457f80b /test/test_config.rb
parentf964edfb913b60e725c33a4a4779c6b056e854bc (diff)
downloadnet-ssh-ed65892430018038f47076fd058e0669a3fd680c.tar.gz
Remove translated globals and only set check_host_ip if not already set
Diffstat (limited to 'test/test_config.rb')
-rw-r--r--test/test_config.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_config.rb b/test/test_config.rb
index b85f3c3..39939ba 100644
--- a/test/test_config.rb
+++ b/test/test_config.rb
@@ -57,11 +57,15 @@ class TestConfig < NetSSHTest
def test_check_host_ip
data = %q{
- CheckHostIP no
+ Host *
+ CheckHostIP no
}
with_config_from_data data do |f|
config = Net::SSH::Config.load(f, 'foo')
- assert_equal false, config['check_host_ip']
+ assert_equal false, config['checkhostip']
+
+ config = Net::SSH::Config.for("foo", [f])
+ assert_equal false, config[:check_host_ip]
end
end