diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-15 11:17:35 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-10-22 13:03:28 -0700 |
commit | d9f973371c1b607d1c3b1f6515aa1f7e47ff6735 (patch) | |
tree | b55e38d5f712a369c69def75e33bbb9362f9edb4 | |
parent | f3e117537837b8072da3cf55461f51c4c9b82230 (diff) | |
download | chef-d9f973371c1b607d1c3b1f6515aa1f7e47ff6735.tar.gz |
Guard windows specific includes in spec
-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 } |