diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-13 09:38:29 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-13 09:38:29 -0700 |
commit | 06456f33dc387b17162184b62941aae66f995ec8 (patch) | |
tree | 1c8207dc39cc385e6699ebba7af30256b412e66f /spec | |
parent | 0570d5ca7f040ba1d6a677f5094616364dc1582f (diff) | |
parent | 997b0e0cf1a99e13e8ce5e0f859deb4a225792a4 (diff) | |
download | chef-06456f33dc387b17162184b62941aae66f995ec8.tar.gz |
Merge pull request #2190 from opscode/jdmundrawala/issue-2169
Try to apply dsc configuration even if what-if fails
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/util/dsc/local_configuration_manager_spec.rb | 8 |
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 fb6664bd40..c9a63bf816 100644 --- a/spec/unit/util/dsc/local_configuration_manager_spec.rb +++ b/spec/unit/util/dsc/local_configuration_manager_spec.rb @@ -105,15 +105,15 @@ EOH end end - context 'that fails due to an PowerShell cmdlet error that cannot be handled' do + context 'that fails due to an unknown PowerShell cmdlet error' do let(:lcm_standard_output) { 'some output' } let(:lcm_standard_error) { 'Abort, Retry, Fail?' } let(:lcm_cmdlet_success) { false } - it 'should raise a Chef::Exceptions::PowershellCmdletException' do - expect(Chef::Log).not_to receive(:warn) + it 'should log a warning' do + expect(Chef::Log).to receive(:warn) expect(lcm).to receive(:output_has_dsc_module_failure?).and_call_original - expect {lcm.test_configuration('config')}.to raise_error(Chef::Exceptions::PowershellCmdletException) + expect {lcm.test_configuration('config')}.not_to raise_error end end end |