diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-05-07 09:20:41 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-05-07 09:20:41 -0700 |
commit | 6687bae7bede7919dd50c78379425c76fd3fca70 (patch) | |
tree | a669eff36b8877e6828a8da4e7f86d578c689c52 /spec | |
parent | 3d65e1d22f03e24cace59b2b4d389a01c1890d40 (diff) | |
download | chef-6687bae7bede7919dd50c78379425c76fd3fca70.tar.gz |
Allow units to for winevt to run everywhere
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/log/winevt_spec.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/unit/log/winevt_spec.rb b/spec/unit/log/winevt_spec.rb index 95e805bbb5..867ef55900 100644 --- a/spec/unit/log/winevt_spec.rb +++ b/spec/unit/log/winevt_spec.rb @@ -19,18 +19,12 @@ require 'spec_helper' -module Win32 - class EventLog - end -end - describe Chef::Log::WinEvt do - let(:winevt) { Chef::Log::WinEvt.new } - let(:app) { Chef::Application.new } let(:evtlog) { instance_double("Win32::EventLog")} + let(:winevt) { Chef::Log::WinEvt.new(evtlog) } + let(:app) { Chef::Application.new } before do - allow(::Win32::EventLog).to receive(:open).and_return(evtlog) Chef::Log.init(MonoLogger.new(winevt)) @old_log_level = Chef::Log.level |