diff options
author | tyler-ball <tyleraball@gmail.com> | 2014-12-09 08:51:59 -0800 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-12-17 18:52:23 -0800 |
commit | e208a23c658c323977026c9696b0582d3a0c45ad (patch) | |
tree | 31a882a360ad36a477124ad0afa5a69babbc1203 /spec/unit/recipe_spec.rb | |
parent | 1d64d2371e1abe83c3fe726e46e95d924a44e15d (diff) | |
download | chef-e208a23c658c323977026c9696b0582d3a0c45ad.tar.gz |
Adding test for recipe DSL audit additions
Diffstat (limited to 'spec/unit/recipe_spec.rb')
-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 e1a42362ef..e8c1358ba2 100644 --- a/spec/unit/recipe_spec.rb +++ b/spec/unit/recipe_spec.rb @@ -484,4 +484,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 |