summaryrefslogtreecommitdiffstats
path: root/test/ral/providers/sshkey/parsed.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ral/providers/sshkey/parsed.rb')
-rwxr-xr-xtest/ral/providers/sshkey/parsed.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/ral/providers/sshkey/parsed.rb b/test/ral/providers/sshkey/parsed.rb
index cad758568..8a18d5e9a 100755
--- a/test/ral/providers/sshkey/parsed.rb
+++ b/test/ral/providers/sshkey/parsed.rb
@@ -24,7 +24,7 @@ class TestParsedSSHKey < Test::Unit::TestCase
end
def mkkey(name = "host.domain.com")
- if defined? @pcount
+ if defined?(@pcount)
@pcount += 1
else
@pcount = 1
@@ -96,11 +96,14 @@ class TestParsedSSHKey < Test::Unit::TestCase
assert_equal("one", result[:name], "Did not call post hook")
assert_equal(%w{two}, result[:host_aliases], "Did not call post hook")
- assert_equal("one,two type key",
+
+ assert_equal(
+ "one,two type key",
@provider.to_line(:record_type => :parsed,
:name => "one",
:host_aliases => %w{two},
:type => "type",
+
:key => "key"),
"Did not use pre-hook when generating line"
)