Module: ChefSpec::API::IncludeRecipe
- Defined in:
- lib/chefspec/api/include_recipe.rb
Instance Method Summary collapse
-
#include_recipe(recipe_name) ⇒ ChefSpec::Matchers::IncludeRecipeMatcher
Assert that a Chef run includes a certain recipe.
Instance Method Details
#include_recipe(recipe_name) ⇒ ChefSpec::Matchers::IncludeRecipeMatcher
Assert that a Chef run includes a certain recipe. Given a Chef Recipe that calls include_recipe
:
include_recipe 'apache2::default'
The Examples section demonstrates the different ways to test an include_recipe
directive with ChefSpec.
22 23 24 |
# File 'lib/chefspec/api/include_recipe.rb', line 22 def include_recipe(recipe_name) ChefSpec::Matchers::IncludeRecipeMatcher.new(recipe_name) end |