diff options
author | tyler-ball <tyleraball@gmail.com> | 2014-12-09 08:51:59 -0800 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-12-09 08:51:59 -0800 |
commit | 6aa26b02532ed2f3cbb7ccc2525e1e5f30f7c9e3 (patch) | |
tree | ce41f7cf81fafedcce53f69335452af8c2ca0b7e | |
parent | c6e5654a18f236dd75bb59472e80887c27310d99 (diff) | |
download | chef-tball/recipe-test.tar.gz |
Adding test for recipe DSL audit additionstball/recipe-test
-rw-r--r-- | spec/unit/recipe_spec.rb | 7 |
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 |