summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-03-24 18:41:50 -0700
committerGitHub <noreply@github.com>2020-03-24 18:41:50 -0700
commit529d043140f9e3654607f2c73e55583b24715c24 (patch)
tree442c40c1e0e9eb69662d80460ab4f72fa4ab4888
parent65bef214abf0c4d37aeb7e2f606925845b4e612c (diff)
parenta737b6b1974f053117c8409c5a36f546bc843e03 (diff)
downloadchef-529d043140f9e3654607f2c73e55583b24715c24.tar.gz
Merge pull request #9531 from chef/fix_windows_builds
Switch to RUBY_PLATFORM for the windows check
-rw-r--r--spec/support/platforms/win32/spec_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/platforms/win32/spec_service.rb b/spec/support/platforms/win32/spec_service.rb
index f43e4a15fb..a29a5c94a8 100644
--- a/spec/support/platforms/win32/spec_service.rb
+++ b/spec/support/platforms/win32/spec_service.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-if ChefUtils.windows?
+if RUBY_PLATFORM =~ /mswin|mingw|windows/
require "win32/daemon"
class SpecService < ::Win32::Daemon