diff options
author | Serdar Sutay <serdar@opscode.com> | 2015-02-11 08:42:28 -0800 |
---|---|---|
committer | Serdar Sutay <serdar@opscode.com> | 2015-02-11 08:42:28 -0800 |
commit | 5a78c483d2a40b0de04609f7f6c829763fa9938b (patch) | |
tree | ecce6200d11e71c8680291821195a27d8e45e10a /spec/unit/audit | |
parent | 68bab0b362c47e5a75492e57094f72ecee1171ae (diff) | |
parent | 4cbc6274889ddedf105ec99200f53b50439df273 (diff) | |
download | chef-5a78c483d2a40b0de04609f7f6c829763fa9938b.tar.gz |
Merge pull request #2758 from chef/mcquin/control_group
Change audit DSL method controls to control_group.
Diffstat (limited to 'spec/unit/audit')
-rw-r--r-- | spec/unit/audit/audit_event_proxy_spec.rb | 4 | ||||
-rw-r--r-- | spec/unit/audit/runner_spec.rb | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/audit/audit_event_proxy_spec.rb b/spec/unit/audit/audit_event_proxy_spec.rb index 899ba468b1..17a5d3d771 100644 --- a/spec/unit/audit/audit_event_proxy_spec.rb +++ b/spec/unit/audit/audit_event_proxy_spec.rb @@ -44,7 +44,7 @@ describe Chef::Audit::AuditEventProxy do it "notifies control_group_started event" do expect(Chef::Log).to receive(:debug). - with("Entered \`controls\` block named poots") + with("Entered \`control_group\` block named poots") expect(events).to receive(:control_group_started). with(description) audit_event_proxy.example_group_started(notification) @@ -76,7 +76,7 @@ describe Chef::Audit::AuditEventProxy do end it "sends a message that audits completed" do - expect(Chef::Log).to receive(:info).with("Successfully executed all \`controls\` blocks and contained examples") + expect(Chef::Log).to receive(:info).with("Successfully executed all \`control_group\` blocks and contained examples") audit_event_proxy.stop(notification) end diff --git a/spec/unit/audit/runner_spec.rb b/spec/unit/audit/runner_spec.rb index 893064e067..801147bdb9 100644 --- a/spec/unit/audit/runner_spec.rb +++ b/spec/unit/audit/runner_spec.rb @@ -78,14 +78,14 @@ describe Chef::Audit::Runner do end end - describe "#register_controls" do + describe "#register_control_groups" do let(:audits) { [] } let(:run_context) { instance_double(Chef::RunContext, :audits => audits) } it "adds the control group aliases" do - runner.send(:register_controls) + runner.send(:register_control_groups) - expect(RSpec::Core::DSL.example_group_aliases).to include(:__controls__) + expect(RSpec::Core::DSL.example_group_aliases).to include(:__control_group__) expect(RSpec::Core::DSL.example_group_aliases).to include(:control) end @@ -94,7 +94,7 @@ describe Chef::Audit::Runner do let(:group) {Struct.new(:args, :block).new(["group_name"], nil)} it "sends the audits to the world" do - runner.send(:register_controls) + runner.send(:register_control_groups) expect(RSpec.world.example_groups.size).to eq(1) # For whatever reason, `kind_of` is not working |