diff options
author | Claire McQuin <claire@getchef.com> | 2014-11-19 16:40:17 -0800 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-12-17 18:52:02 -0800 |
commit | 2d7e99441986ca5bed15dfa1420fddb1b1185632 (patch) | |
tree | 4955f788c015f368d352fa935959f45d861c4a9e /kitchen-tests | |
parent | 694b24cf15b287242e842d322a3eb0db901879e8 (diff) | |
download | chef-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.rb | 15 |
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 |