summaryrefslogtreecommitdiff
path: root/spec/unit/recipe_spec.rb
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-12-09 08:51:59 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:52:23 -0800
commite208a23c658c323977026c9696b0582d3a0c45ad (patch)
tree31a882a360ad36a477124ad0afa5a69babbc1203 /spec/unit/recipe_spec.rb
parent1d64d2371e1abe83c3fe726e46e95d924a44e15d (diff)
downloadchef-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.rb7
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