diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-03-24 21:25:20 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-03-24 21:39:52 -0700 |
commit | 32eeea7a9c0830a2dd53df59c574a8934562df34 (patch) | |
tree | e27adb0565a93b2407aee4ffa39613ec488d78be | |
parent | 74d0628a1c1fbb6c378dcce80343e830fff9d230 (diff) | |
download | chef-switch_back_to_utils.tar.gz |
Switch our spec helper check to ChefUtils.windows_rubyswitch_back_to_utils
This should work instead of ChefUtils.windows and is simpler than the RUBY_PLATFORM check.
Signed-off-by: Tim Smith <tsmith@chef.io>
-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 |