module ChefSpec
def define_matcher(resource_name)
-
(self)-
Parameters:
-
resource_name(Symbol) --
def define_matcher(resource_name) matchers[resource_name.to_sym] = Proc.new do |identity| find_resource(resource_name, identity) end self end
def matchers
-
(Hash-)
def matchers @matchers ||= {} end
def root
-
(Pathname)-
def root @root ||= Pathname.new(File.expand_path("..", __dir__)) end