diff options
-rw-r--r-- | spec/functional/logging/windows_eventlog_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/functional/logging/windows_eventlog_spec.rb b/spec/functional/logging/windows_eventlog_spec.rb index 0cedce1b26..b86595e053 100644 --- a/spec/functional/logging/windows_eventlog_spec.rb +++ b/spec/functional/logging/windows_eventlog_spec.rb @@ -19,8 +19,10 @@ require 'spec_helper' require 'securerandom' require 'chef/logging/windows_eventlog' -require 'win32/eventlog' -include Win32 +if Chef::Platform.windows? + require 'win32/eventlog' + include Win32 +end describe Chef::Logging::WindowsEventLogger, :windows_only do let(:run_id) { SecureRandom.uuid } |