module ChefSpec::API::DirectoryMatchers
def create_directory(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)-
Parameters:
-
resource_name(String, Regex) --
Other tags:
- Example: Assert that a +directory+ was _not_ createed -
Example: Assert that a +directory+ was createed using a regex -
Example: Assert that a +directory+ was createed with attributes -
Example: Assert that a +directory+ was createed with predicate matchers -
Example: Assert that a +directory+ was createed -
def create_directory(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:directory, :create, resource_name) end
def delete_directory(resource_name)
-
(ChefSpec::Matchers::ResourceMatcher)-
Parameters:
-
resource_name(String, Regex) --
Other tags:
- Example: Assert that a +directory+ was _not_ deleteed -
Example: Assert that a +directory+ was deleteed using a regex -
Example: Assert that a +directory+ was deleteed with attributes -
Example: Assert that a +directory+ was deleteed with predicate matchers -
Example: Assert that a +directory+ was deleteed -
def delete_directory(resource_name) ChefSpec::Matchers::ResourceMatcher.new(:directory, :delete, resource_name) end