module ChefSpec::API::DirectoryMatchers

def create_directory(resource_name)

Returns:
  • (ChefSpec::Matchers::ResourceMatcher) -

Parameters:
  • resource_name (String, Regex) --

Other tags:
    Example: Assert that a +directory+ was _not_ created -
    Example: Assert that a +directory+ was created using a regex -
    Example: Assert that a +directory+ was created with attributes -
    Example: Assert that a +directory+ was created with predicate matchers -
    Example: Assert that a +directory+ was created -
def create_directory(resource_name)
  ChefSpec::Matchers::ResourceMatcher.new(:directory, :create, resource_name)
end

def delete_directory(resource_name)

Returns:
  • (ChefSpec::Matchers::ResourceMatcher) -

Parameters:
  • resource_name (String, Regex) --

Other tags:
    Example: Assert that a +directory+ was _not_ deleted -
    Example: Assert that a +directory+ was deleted using a regex -
    Example: Assert that a +directory+ was deleted with attributes -
    Example: Assert that a +directory+ was deleted with predicate matchers -
    Example: Assert that a +directory+ was deleted -
def delete_directory(resource_name)
  ChefSpec::Matchers::ResourceMatcher.new(:directory, :delete, resource_name)
end