diff options
author | Steven Murawski <steven.murawski@gmail.com> | 2016-02-02 16:58:52 -0600 |
---|---|---|
committer | Steven Murawski <steven.murawski@gmail.com> | 2016-02-03 12:32:25 -0600 |
commit | 84bdd582a13a90e01a4fdb41bbd6aaae34806719 (patch) | |
tree | e6efe1a2d4c82844471168b09207d55edd21b5e4 /spec | |
parent | ab63cd4be967b5d01f6ec856244e4b9af4e896d9 (diff) | |
download | chef-84bdd582a13a90e01a4fdb41bbd6aaae34806719.tar.gz |
include verbose output from the set method and shared function for accessing verbose log info.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/dsc_resource_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/provider/dsc_resource_spec.rb b/spec/unit/provider/dsc_resource_spec.rb index e47da8a165..6a5063ac60 100644 --- a/spec/unit/provider/dsc_resource_spec.rb +++ b/spec/unit/provider/dsc_resource_spec.rb @@ -98,6 +98,7 @@ describe Chef::Provider::DscResource do expect(provider).to receive(:test_resource).and_return(false) expect(provider).to receive(:invoke_resource). and_return(double(:stdout => "", :return_value =>nil)) + expect(provider).to receive(:add_dsc_verbose_log) expect(provider).to receive(:return_dsc_resource_result).and_return(true) expect(provider).to receive(:create_reboot_resource) provider.run_action(:run) @@ -108,6 +109,7 @@ describe Chef::Provider::DscResource do expect(provider).to receive(:test_resource).and_return(false) expect(provider).to receive(:invoke_resource). and_return(double(:stdout => "", :return_value =>nil)) + expect(provider).to receive(:add_dsc_verbose_log) expect(provider).to receive(:return_dsc_resource_result).and_return(false) expect(provider).to_not receive(:create_reboot_resource) provider.run_action(:run) |