diff options
author | Tyler Ball <tyleraball@gmail.com> | 2014-12-09 14:09:04 -0800 |
---|---|---|
committer | Tyler Ball <tyleraball@gmail.com> | 2014-12-09 14:09:04 -0800 |
commit | 1780161cea9e91dc368d0a693c82f1558b7fe308 (patch) | |
tree | 8831e2e08879bed087ccbe678637d1520e0ed68e | |
parent | 121fa21fc2e75a6eaa40bf6ced7f7421bf1171ea (diff) | |
parent | 6aa26b02532ed2f3cbb7ccc2525e1e5f30f7c9e3 (diff) | |
download | chef-1780161cea9e91dc368d0a693c82f1558b7fe308.tar.gz |
Merge pull request #2585 from opscode/tball/recipe-test
Adding test for recipe DSL audit additions
-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 |