diff options
author | Claire McQuin <claire@getchef.com> | 2014-11-05 13:35:21 -0800 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-11-05 13:35:21 -0800 |
commit | 63c6a73f3bd5176fe7fe255983bf973434092569 (patch) | |
tree | bd7d87fbaa687a4d17e468f1f5a18c382521a4c4 | |
parent | 21972b0b5de4087c76cbdbb1c688a197bad70f82 (diff) | |
download | chef-63c6a73f3bd5176fe7fe255983bf973434092569.tar.gz |
add rspec/its
-rw-r--r-- | lib/chef/audit.rb | 1 | ||||
-rw-r--r-- | lib/chef/audit/chef_example_group.rb | 1 | ||||
-rw-r--r-- | lib/chef/dsl/audit.rb | 4 |
3 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef/audit.rb b/lib/chef/audit.rb index 0c79928974..9d0a2a70ed 100644 --- a/lib/chef/audit.rb +++ b/lib/chef/audit.rb @@ -17,6 +17,7 @@ # require 'rspec' +require 'rspec/its' require 'serverspec/matcher' require 'serverspec/helper' diff --git a/lib/chef/audit/chef_example_group.rb b/lib/chef/audit/chef_example_group.rb index cd874d57b7..482647cd03 100644 --- a/lib/chef/audit/chef_example_group.rb +++ b/lib/chef/audit/chef_example_group.rb @@ -1,4 +1,3 @@ -require 'rspec/core' class Chef class Audit diff --git a/lib/chef/dsl/audit.rb b/lib/chef/dsl/audit.rb index 948db72921..6442a37969 100644 --- a/lib/chef/dsl/audit.rb +++ b/lib/chef/dsl/audit.rb @@ -15,7 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -#require 'chef/audit' + require 'chef/audit/chef_example_group' class Chef @@ -25,8 +25,6 @@ class Chef # Adds the controls group and block (containing controls to execute) to the runner's list of pending examples def controls(group_name, &group_block) raise ::Chef::Exceptions::NoAuditsProvided unless group_block - - # TODO add the @example_groups list to the runner for later execution run_context.controls_groups << ::Chef::Audit::ChefExampleGroup.describe(group_name, &group_block) end |