diff options
author | Claire McQuin <claire@getchef.com> | 2014-11-20 16:32:38 -0800 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-11-20 16:32:38 -0800 |
commit | 0ff708f8e8097643619f51398de4591caedfb822 (patch) | |
tree | f7c8113f877d8d0350094a9819aa5ff629a97078 | |
parent | 3e85b330c453980c20960ae53e80558c2e0ae45b (diff) | |
download | chef-0ff708f8e8097643619f51398de4591caedfb822.tar.gz |
Wrap in control block until we get top-level tests working.
-rw-r--r-- | kitchen-tests/cookbooks/audit_test/recipes/default.rb | 6 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/kitchen-tests/cookbooks/audit_test/recipes/default.rb b/kitchen-tests/cookbooks/audit_test/recipes/default.rb index f02f24c2c9..848e085125 100644 --- a/kitchen-tests/cookbooks/audit_test/recipes/default.rb +++ b/kitchen-tests/cookbooks/audit_test/recipes/default.rb @@ -5,7 +5,9 @@ # Copyright (c) 2014 The Authors, All Rights Reserved. controls "basic control" do - it "should pass" do - expect(2 - 2).to eq(0) + control "math" do + it "should pass" do + expect(2 - 2).to eq(0) + end end end diff --git a/kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb b/kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb index 00bdd9c9e9..2ead0722e1 100644 --- a/kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb +++ b/kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb @@ -7,9 +7,11 @@ 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 + control "math" do + it "should also pass" do + arr = [0, 0] + arr.delete(0) + expect( arr ).to be_empty + end end end |