diff options
-rw-r--r-- | spec/unit/util/dsc/local_configuration_manager_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/unit/util/dsc/local_configuration_manager_spec.rb b/spec/unit/util/dsc/local_configuration_manager_spec.rb index 1281862e67..1cff9e445b 100644 --- a/spec/unit/util/dsc/local_configuration_manager_spec.rb +++ b/spec/unit/util/dsc/local_configuration_manager_spec.rb @@ -65,7 +65,7 @@ EOH let(:lcm_cmdlet_success) { true } it 'should successfully return resource information for normally formatted output when cmdlet the cmdlet succeeds' do - test_configuration_result = lcm.test_configuration('config') + test_configuration_result = lcm.test_configuration('config', {}) expect(test_configuration_result.class).to be(Array) expect(test_configuration_result.length).to be > 0 expect(Chef::Log).not_to receive(:warn) @@ -85,7 +85,7 @@ EOH 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 + expect {test_configuration_result = lcm.test_configuration('config', {})}.not_to raise_error expect(test_configuration_result.class).to be(Array) end end @@ -99,13 +99,13 @@ EOH 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 + 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).at_least(:once) test_configuration_result = nil - expect {test_configuration_result = lcm.test_configuration('config')}.not_to raise_error + expect {test_configuration_result = lcm.test_configuration('config', {})}.not_to raise_error expect(test_configuration_result.class).to be(Array) end end @@ -118,7 +118,7 @@ EOH it 'should log a warning' do 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 + expect {lcm.test_configuration('config', {})}.not_to raise_error end end end |