summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-11-20 16:32:38 -0800
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:52:02 -0800
commitdbe6f8f8af4d10e666908bcffe13222933adfe74 (patch)
treebdc65df78529da9dbc20839d73b61de6af6f9d01 /kitchen-tests
parent2d7e99441986ca5bed15dfa1420fddb1b1185632 (diff)
downloadchef-dbe6f8f8af4d10e666908bcffe13222933adfe74.tar.gz
Wrap in control block until we get top-level tests working.
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/audit_test/recipes/default.rb6
-rw-r--r--kitchen-tests/cookbooks/audit_test/recipes/include_recipe.rb10
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