module ChefSpec::API::GroupMatchers

def create_group(resource_name)

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

Parameters:
  • resource_name (String, Regex) --

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

def manage_group(resource_name)

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

Parameters:
  • resource_name (String, Regex) --

Other tags:
    Example: Assert that a +group+ was _not_ managed -
    Example: Assert that a +group+ was managed using a regex -
    Example: Assert that a +group+ was managed with attributes -
    Example: Assert that a +group+ was managed with predicate matchers -
    Example: Assert that a +group+ was managed -
def manage_group(resource_name)
  ChefSpec::Matchers::ResourceMatcher.new(:group, :manage, resource_name)
end

def modify_group(resource_name)

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

Parameters:
  • resource_name (String, Regex) --

Other tags:
    Example: Assert that a +group+ was _not_ modified -
    Example: Assert that a +group+ was modified using a regex -
    Example: Assert that a +group+ was modified with attributes -
    Example: Assert that a +group+ was modified with predicate matchers -
    Example: Assert that a +group+ was modified -
def modify_group(resource_name)
  ChefSpec::Matchers::ResourceMatcher.new(:group, :modify, resource_name)
end

def remove_group(resource_name)

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

Parameters:
  • resource_name (String, Regex) --

Other tags:
    Example: Assert that a +group+ was _not_ removed -
    Example: Assert that a +group+ was removed using a regex -
    Example: Assert that a +group+ was removed with attributes -
    Example: Assert that a +group+ was removed with predicate matchers -
    Example: Assert that a +group+ was removed -
def remove_group(resource_name)
  ChefSpec::Matchers::ResourceMatcher.new(:group, :remove, resource_name)
end