module ChefSpec::API::IncludeAnyRecipe

Public Instance Methods

include_any_recipe() click to toggle source

Assert that a Chef run includes any recipe.

include_recipe 'apache2::default'

The Examples section demonstrates the different ways to test an include_any_recipe directive with ChefSpec.

@example Assert the Chef run did not include any recipes

expect(chef_run).not_to include_any_recipe

@return [ChefSpec::Matchers::IncludeAnyRecipeMatcher]

# File lib/chefspec/api/include_any_recipe.rb, line 18
def include_any_recipe
  ChefSpec::Matchers::IncludeAnyRecipeMatcher.new
end
Also aliased as: include_any_recipes
include_any_recipes()
Alias for: include_any_recipe