diff options
Diffstat (limited to 'lib/chef/audit/runner.rb')
-rw-r--r-- | lib/chef/audit/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb index 2c72e6f11f..306212989a 100644 --- a/lib/chef/audit/runner.rb +++ b/lib/chef/audit/runner.rb @@ -141,7 +141,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 |