diff options
author | Matt Wrock <matt@mattwrock.com> | 2015-11-06 17:21:06 -0800 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2015-11-06 17:21:06 -0800 |
commit | 43b0011220907da903ef10947a6914d8b574d080 (patch) | |
tree | fe894ff7656f1cbed1b71ffa972a5991c92b879b /spec/unit/windows_service_spec.rb | |
parent | d70014cbcbb99558437587cf03f7b1ec3939df81 (diff) | |
download | chef-logging_redux.tar.gz |
fix log location resolution in windows servicelogging_redux
Diffstat (limited to 'spec/unit/windows_service_spec.rb')
-rw-r--r-- | spec/unit/windows_service_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/windows_service_spec.rb b/spec/unit/windows_service_spec.rb index d4f2da9892..9ed6d37263 100644 --- a/spec/unit/windows_service_spec.rb +++ b/spec/unit/windows_service_spec.rb @@ -24,6 +24,7 @@ describe "Chef::Application::WindowsService", :windows_only do let(:shell_out_result) { double('shellout', stdout: nil, stderr: nil) } let(:config_options) do { + log_location: STDOUT, config_file: "test_config_file", log_level: :info } @@ -78,10 +79,10 @@ describe "Chef::Application::WindowsService", :windows_only do subject.service_main end - context 'configured to STDOUT' do + context 'configured to Event Logger' do let(:config_options) do { - log_location: STDOUT, + log_location: Chef::Log::WinEvt.new, config_file: "test_config_file", log_level: :info } |