summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-11-19 16:40:17 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:52:02 -0800
commit2d7e99441986ca5bed15dfa1420fddb1b1185632 (patch)
tree4955f788c015f368d352fa935959f45d861c4a9e /kitchen-tests
parent694b24cf15b287242e842d322a3eb0db901879e8 (diff)
downloadchef-2d7e99441986ca5bed15dfa1420fddb1b1185632.tar.gz
Add recipe to test include_recipe with controls.
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb b/kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb
new file mode 100644
index 0000000000..00bdd9c9e9
--- /dev/null
+++ b/kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb
@@ -0,0 +1,15 @@
+#
+# Cookbook Name:: audit_test
+# Recipe:: include_recipe
+#
+# Copyright (c) 2014 The Authors, All Rights Reserved.
+
+include_recipe "audit_test::default"
+
+controls "another basic control" do
+ it "should also pass" do
+ arr = [0, 0]
+ arr.delete(0)
+ expect( arr ).to be_empty
+ end
+end