From ed65892430018038f47076fd058e0669a3fd680c Mon Sep 17 00:00:00 2001 From: Miklos Fazekas Date: Thu, 7 Mar 2019 21:50:06 +0100 Subject: Remove translated globals and only set check_host_ip if not already set --- test/test_config.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/test_config.rb') 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 -- cgit v1.2.1