summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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