From 19f2c6e437642db0c03b193349b13d04636cb8ee Mon Sep 17 00:00:00 2001 From: tyler-ball Date: Tue, 2 Dec 2014 09:30:45 -0800 Subject: Updating to use audit syntax rather than control --- lib/chef/audit/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/audit/runner.rb') diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb index a290dd6607..df6b6d682f 100644 --- a/lib/chef/audit/runner.rb +++ b/lib/chef/audit/runner.rb @@ -143,7 +143,7 @@ class Chef # or use example group filters. def register_controls add_example_group_methods - run_context.controls.each do |name, group| + run_context.audits.each do |name, group| ctl_grp = RSpec::Core::ExampleGroup.__controls__(*group[:args], &group[:block]) RSpec.world.register(ctl_grp) end -- cgit v1.2.1