summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-12-09 08:51:59 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-09 08:51:59 -0800
commit6aa26b02532ed2f3cbb7ccc2525e1e5f30f7c9e3 (patch)
treece41f7cf81fafedcce53f69335452af8c2ca0b7e
parentc6e5654a18f236dd75bb59472e80887c27310d99 (diff)
downloadchef-tball/recipe-test.tar.gz
Adding test for recipe DSL audit additionstball/recipe-test
-rw-r--r--spec/unit/recipe_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/recipe_spec.rb b/spec/unit/recipe_spec.rb
index 1b7506d965..3dfbf986d9 100644
--- a/spec/unit/recipe_spec.rb
+++ b/spec/unit/recipe_spec.rb
@@ -483,4 +483,11 @@ describe Chef::Recipe do
expect(node[:tags]).to eql([])
end
end
+
+ describe "included DSL" do
+ it "should include features from Chef::DSL::Audit" do
+ expect(recipe.singleton_class.included_modules).to include(Chef::DSL::Audit)
+ expect(recipe.respond_to?(:controls)).to be true
+ end
+ end
end