summaryrefslogtreecommitdiff
path: root/spec/support/chef_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/chef_helpers.rb')
-rw-r--r--spec/support/chef_helpers.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/support/chef_helpers.rb b/spec/support/chef_helpers.rb
index 6a0ca878cd..3738c4a41e 100644
--- a/spec/support/chef_helpers.rb
+++ b/spec/support/chef_helpers.rb
@@ -40,22 +40,6 @@ def make_tmpname(prefix_suffix, n = nil)
path << suffix
end
-# This is a helper to determine if the ruby in the PATH contains
-# win32/service gem. windows_service_manager tests create a windows
-# service that starts with the system ruby and requires this gem.
-def system_windows_service_gem?
- windows_service_gem_check_command = %{ruby -r "win32/daemon" -e ":noop" > #{File::NULL} 2>&1}
- if defined?(Bundler)
- Bundler.with_unbundled_env do
- # This returns true if the gem can be loaded
- system(windows_service_gem_check_command)
- end
- else
- # This returns true if the gem can be loaded
- system(windows_service_gem_check_command)
- end
-end
-
# This is a helper to canonicalize paths that we're using in the file
# tests.
def canonicalize_path(path)