summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2014-12-15 23:19:29 -0800
committerBryan McLellan <btm@loftninjas.org>2014-12-17 20:16:13 -0500
commitff61089480e886e7b730b47ddd1771102285a842 (patch)
treefccbc6ebfdc0853357cfdd9d44c46ade9510811c
parent60cf0de3e368168ba0a5ed8d9d4d9f261aed6431 (diff)
downloadchef-ff61089480e886e7b730b47ddd1771102285a842.tar.gz
Don't care how many timess you warn, just do it
-rw-r--r--spec/unit/util/dsc/local_configuration_manager_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/util/dsc/local_configuration_manager_spec.rb b/spec/unit/util/dsc/local_configuration_manager_spec.rb
index 009c667c87..1281862e67 100644
--- a/spec/unit/util/dsc/local_configuration_manager_spec.rb
+++ b/spec/unit/util/dsc/local_configuration_manager_spec.rb
@@ -82,7 +82,7 @@ EOH
end
it 'should should return a (possibly empty) array of ResourceInfo instances' do
- expect(Chef::Log).to receive(:warn)
+ expect(Chef::Log).to receive(:warn).at_least(:once)
expect(lcm).to receive(:whatif_not_supported?).and_call_original
test_configuration_result = nil
expect {test_configuration_result = lcm.test_configuration('config')}.not_to raise_error
@@ -96,14 +96,14 @@ EOH
let(:lcm_cmdlet_success) { false }
it 'should log a warning if the message is formatted as expected when a resource import failure occurs' do
- expect(Chef::Log).to receive(:warn)
+ expect(Chef::Log).to receive(:warn).at_least(:once)
expect(lcm).to receive(:dsc_module_import_failure?).and_call_original
test_configuration_result = nil
expect {test_configuration_result = lcm.test_configuration('config')}.not_to raise_error
end
it 'should return a (possibly empty) array of ResourceInfo instances' do
- expect(Chef::Log).to receive(:warn)
+ expect(Chef::Log).to receive(:warn).at_least(:once)
test_configuration_result = nil
expect {test_configuration_result = lcm.test_configuration('config')}.not_to raise_error
expect(test_configuration_result.class).to be(Array)
@@ -116,7 +116,7 @@ EOH
let(:lcm_cmdlet_success) { false }
it 'should log a warning' do
- expect(Chef::Log).to receive(:warn)
+ expect(Chef::Log).to receive(:warn).at_least(:once)
expect(lcm).to receive(:dsc_module_import_failure?).and_call_original
expect {lcm.test_configuration('config')}.not_to raise_error
end