diff options
-rw-r--r-- | spec/support/platforms/win32/spec_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/platforms/win32/spec_service.rb b/spec/support/platforms/win32/spec_service.rb index a29a5c94a8..93c0eb513c 100644 --- a/spec/support/platforms/win32/spec_service.rb +++ b/spec/support/platforms/win32/spec_service.rb @@ -1,6 +1,6 @@ # # Author:: Serdar Sutay (<serdar@lambda.local>) -# Copyright:: Copyright 2013-2016, Chef Software Inc. +# Copyright:: Copyright 2013-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,7 +16,7 @@ # limitations under the License. # -if RUBY_PLATFORM =~ /mswin|mingw|windows/ +if ChefUtils.windows_ruby? require "win32/daemon" class SpecService < ::Win32::Daemon |