summaryrefslogtreecommitdiff
path: root/spec/unit/client_spec.rb
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2015-05-19 17:11:10 -0700
committerBryan McLellan <btm@loftninjas.org>2015-05-27 14:16:29 -0400
commit166a6db885fe988c71c403c7f22c1d7b1189830a (patch)
treeafac877636e49f3f2dcc146de142d4724c48e646 /spec/unit/client_spec.rb
parentdd89bd93841acf8aa64a9dc21f64e09d2fe7b762 (diff)
downloadchef-166a6db885fe988c71c403c7f22c1d7b1189830a.tar.gz
remove configuration option
Diffstat (limited to 'spec/unit/client_spec.rb')
-rw-r--r--spec/unit/client_spec.rb40
1 files changed, 3 insertions, 37 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index 301f64ddf1..1704bcc461 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -253,24 +253,7 @@ describe Chef::Client do
describe "when audit phase completed with failed controls" do
include_context "audit phase completed with failed controls"
-
- context "with :audit_as_warning true" do
- before do
- Chef::Config[:audit_as_warning] = true
- end
-
- include_examples "a completed run"
- end
-
- context "with :audit_as_warning false" do
- before do
- Chef::Config[:audit_as_warning] = false
- end
-
- include_examples "a failed run" do
- let(:run_errors) { [audit_error] }
- end
- end
+ include_examples "a completed run"
end
end
@@ -294,25 +277,8 @@ describe Chef::Client do
describe "when audit phase completed with failed controls" do
include_context "audit phase completed with failed controls"
-
- context "with :audit_as_warning true" do
- before do
- Chef::Config[:audit_as_warning] = true
- end
-
- include_examples "a failed run" do
- let(:run_errors) { [converge_error] }
- end
- end
-
- context "with :audit_as_warning false" do
- before do
- Chef::Config[:audit_as_warning] = false
- end
-
- include_examples "a failed run" do
- let(:run_errors) { [converge_error, audit_error] }
- end
+ include_examples "a failed run" do
+ let(:run_errors) { [converge_error] }
end
end
end