Permalink
Browse files

Adding matchers for known_hosts resource

  • Loading branch information...
1 parent 1875a98 commit ac88a273d61a14acf64baa8abb67f27248ea95a6 @PierreRambaud PierreRambaud committed May 23, 2014
Showing with 8 additions and 0 deletions.
  1. +8 −0 libraries/matchers.rb
View
@@ -8,4 +8,12 @@ def add_ssh_config(resource_name)
def remove_ssh_config(resource_name)
ChefSpec::Matchers::ResourceMatcher.new(:ssh_config, :remove, resource_name)
end
+
+ def add_ssh_known_hosts(resource_name)
+ ChefSpec::Matchers::ResourceMatcher.new(:ssh_known_hosts, :add, resource_name)
+ end
+
+ def remove_ssh_known_hosts(resource_name)
+ ChefSpec::Matchers::ResourceMatcher.new(:ssh_known_hosts, :remove, resource_name)
+ end
end

0 comments on commit ac88a27

Please sign in to comment.