summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLynn Frank <franklin.webber@gmail.com>2019-04-12 23:38:45 -0500
committerLynn Frank <franklin.webber@gmail.com>2019-04-12 23:38:45 -0500
commit740660fbf47911a8aa98bab928323692a9980766 (patch)
tree6c94b521377dd03fadcdeb38942a32ba58dafce7
parent05e507952d8dbff8e31528f1ebcab72664e99aa2 (diff)
downloadohai-740660fbf47911a8aa98bab928323692a9980766.tar.gz
Replaces require_relative with require
RSpec automatically adds the spec directory to the $LOAD_PATH so it is not necessary to find the spec_helper with complicated path. Signed-off-by: Franklin Webber <franklin.webber@gmail.com>
-rw-r--r--spec/functional/application_spec.rb2
-rw-r--r--spec/functional/loader_spec.rb2
-rw-r--r--spec/functional/plugins/powershell_spec.rb2
-rw-r--r--spec/functional/plugins/root_group_spec.rb2
-rw-r--r--spec/functional/plugins/windows/uptime_spec.rb2
-rw-r--r--spec/ohai_spec.rb2
-rw-r--r--spec/unit/application_spec.rb2
-rw-r--r--spec/unit/config_spec.rb2
-rw-r--r--spec/unit/dsl/plugin_spec.rb2
-rw-r--r--spec/unit/hints_spec.rb2
-rw-r--r--spec/unit/loader_spec.rb2
-rw-r--r--spec/unit/mixin/azure_metadata_spec.rb2
-rw-r--r--spec/unit/mixin/command_spec.rb2
-rw-r--r--spec/unit/mixin/dmi_decode.rb2
-rw-r--r--spec/unit/mixin/ec2_metadata_spec.rb2
-rw-r--r--spec/unit/mixin/softlayer_metadata_spec.rb2
-rw-r--r--spec/unit/plugin_config_spec.rb2
-rw-r--r--spec/unit/plugins/abort_spec.rb2
-rw-r--r--spec/unit/plugins/aix/cpu_spec.rb2
-rw-r--r--spec/unit/plugins/aix/filesystem_spec.rb2
-rw-r--r--spec/unit/plugins/aix/hostname_spec.rb2
-rw-r--r--spec/unit/plugins/aix/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/aix/memory_spec.rb2
-rw-r--r--spec/unit/plugins/aix/network_spec.rb2
-rw-r--r--spec/unit/plugins/aix/platform_spec.rb2
-rw-r--r--spec/unit/plugins/aix/uptime_spec.rb2
-rw-r--r--spec/unit/plugins/aix/virtualization_spec.rb2
-rw-r--r--spec/unit/plugins/azure_spec.rb2
-rw-r--r--spec/unit/plugins/bsd/filesystem_spec.rb2
-rw-r--r--spec/unit/plugins/bsd/virtualization_spec.rb2
-rw-r--r--spec/unit/plugins/c_spec.rb2
-rw-r--r--spec/unit/plugins/chef_spec.rb2
-rw-r--r--spec/unit/plugins/cloud_spec.rb2
-rw-r--r--spec/unit/plugins/darwin/cpu_spec.rb2
-rw-r--r--spec/unit/plugins/darwin/filesystem_spec.rb2
-rw-r--r--spec/unit/plugins/darwin/hardware_spec.rb4
-rw-r--r--spec/unit/plugins/darwin/hostname_spec.rb2
-rw-r--r--spec/unit/plugins/darwin/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/darwin/memory_spec.rb2
-rw-r--r--spec/unit/plugins/darwin/network_spec.rb2
-rw-r--r--spec/unit/plugins/darwin/platform_spec.rb2
-rw-r--r--spec/unit/plugins/darwin/virtualization_spec.rb2
-rw-r--r--spec/unit/plugins/dmi_spec.rb2
-rw-r--r--spec/unit/plugins/docker_spec.rb2
-rw-r--r--spec/unit/plugins/ec2_spec.rb2
-rw-r--r--spec/unit/plugins/elixir_spec.rb2
-rw-r--r--spec/unit/plugins/erlang_spec.rb2
-rw-r--r--spec/unit/plugins/eucalyptus_spec.rb2
-rw-r--r--spec/unit/plugins/fail_spec.rb2
-rw-r--r--spec/unit/plugins/freebsd/cpu_spec.rb2
-rw-r--r--spec/unit/plugins/freebsd/hostname_spec.rb2
-rw-r--r--spec/unit/plugins/freebsd/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/freebsd/platform_spec.rb2
-rw-r--r--spec/unit/plugins/gce_spec.rb2
-rw-r--r--spec/unit/plugins/go_spec.rb2
-rw-r--r--spec/unit/plugins/groovy_spec.rb2
-rw-r--r--spec/unit/plugins/haskell_spec.rb2
-rw-r--r--spec/unit/plugins/hostname_spec.rb2
-rw-r--r--spec/unit/plugins/init_package_spec.rb2
-rw-r--r--spec/unit/plugins/java_spec.rb2
-rw-r--r--spec/unit/plugins/joyent_spec.rb2
-rw-r--r--spec/unit/plugins/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/linode_spec.rb2
-rw-r--r--spec/unit/plugins/linux/block_device_spec.rb2
-rw-r--r--spec/unit/plugins/linux/cpu_spec.rb2
-rw-r--r--spec/unit/plugins/linux/filesystem_spec.rb2
-rw-r--r--spec/unit/plugins/linux/fips_spec.rb2
-rw-r--r--spec/unit/plugins/linux/hostname_spec.rb2
-rw-r--r--spec/unit/plugins/linux/hostnamectl_spec.rb2
-rw-r--r--spec/unit/plugins/linux/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/linux/lsb_spec.rb2
-rw-r--r--spec/unit/plugins/linux/lspci_spec.rb2
-rw-r--r--spec/unit/plugins/linux/machineid_spec.rb2
-rw-r--r--spec/unit/plugins/linux/mdadm_spec.rb2
-rw-r--r--spec/unit/plugins/linux/memory_spec.rb2
-rw-r--r--spec/unit/plugins/linux/network_spec.rb2
-rw-r--r--spec/unit/plugins/linux/platform_spec.rb2
-rw-r--r--spec/unit/plugins/linux/sessions_spec.rb2
-rw-r--r--spec/unit/plugins/linux/uptime_spec.rb2
-rw-r--r--spec/unit/plugins/linux/virtualization_spec.rb2
-rw-r--r--spec/unit/plugins/lua_spec.rb2
-rw-r--r--spec/unit/plugins/mono_spec.rb2
-rw-r--r--spec/unit/plugins/netbsd/hostname_spec.rb2
-rw-r--r--spec/unit/plugins/netbsd/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/netbsd/platform_spec.rb2
-rw-r--r--spec/unit/plugins/network_spec.rb2
-rw-r--r--spec/unit/plugins/nodejs_spec.rb2
-rw-r--r--spec/unit/plugins/ohai_spec.rb2
-rw-r--r--spec/unit/plugins/ohai_time_spec.rb2
-rw-r--r--spec/unit/plugins/openbsd/hostname_spec.rb2
-rw-r--r--spec/unit/plugins/openbsd/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/openbsd/platform_spec.rb2
-rw-r--r--spec/unit/plugins/openstack_spec.rb2
-rw-r--r--spec/unit/plugins/os_spec.rb2
-rw-r--r--spec/unit/plugins/packages_spec.rb2
-rw-r--r--spec/unit/plugins/passwd_spec.rb2
-rw-r--r--spec/unit/plugins/perl_spec.rb2
-rw-r--r--spec/unit/plugins/php_spec.rb2
-rw-r--r--spec/unit/plugins/platform_spec.rb2
-rw-r--r--spec/unit/plugins/powershell_spec.rb2
-rw-r--r--spec/unit/plugins/python_spec.rb2
-rw-r--r--spec/unit/plugins/rackspace_spec.rb2
-rw-r--r--spec/unit/plugins/root_group_spec.rb2
-rw-r--r--spec/unit/plugins/ruby_spec.rb2
-rw-r--r--spec/unit/plugins/rust_spec.rb2
-rw-r--r--spec/unit/plugins/scala_spec.rb2
-rw-r--r--spec/unit/plugins/scsi_spec.rb2
-rw-r--r--spec/unit/plugins/shard_spec.rb2
-rw-r--r--spec/unit/plugins/shells_spec.rb2
-rw-r--r--spec/unit/plugins/softlayer_spec.rb2
-rw-r--r--spec/unit/plugins/solaris2/cpu_spec.rb2
-rw-r--r--spec/unit/plugins/solaris2/dmi_spec.rb2
-rw-r--r--spec/unit/plugins/solaris2/filesystem.rb2
-rw-r--r--spec/unit/plugins/solaris2/hostname_spec.rb2
-rw-r--r--spec/unit/plugins/solaris2/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/solaris2/memory_spec.rb2
-rw-r--r--spec/unit/plugins/solaris2/network_spec.rb2
-rw-r--r--spec/unit/plugins/solaris2/platform_spec.rb2
-rw-r--r--spec/unit/plugins/solaris2/virtualization_spec.rb2
-rw-r--r--spec/unit/plugins/ssh_host_keys_spec.rb2
-rw-r--r--spec/unit/plugins/sysconf_spec.rb2
-rw-r--r--spec/unit/plugins/timezone_spec.rb2
-rw-r--r--spec/unit/plugins/virtualbox_spec.rb2
-rw-r--r--spec/unit/plugins/vmware_spec.rb2
-rw-r--r--spec/unit/plugins/windows/cpu_spec.rb2
-rw-r--r--spec/unit/plugins/windows/filesystem_spec.rb2
-rw-r--r--spec/unit/plugins/windows/fips_spec.rb2
-rw-r--r--spec/unit/plugins/windows/kernel_spec.rb2
-rw-r--r--spec/unit/plugins/windows/memory_spec.rb2
-rw-r--r--spec/unit/plugins/windows/network_spec.rb2
-rw-r--r--spec/unit/plugins/windows/system_enclosure_spec.rb2
-rw-r--r--spec/unit/plugins/windows/uptime_spec.rb2
-rw-r--r--spec/unit/plugins/windows/virtualization_spec.rb2
-rw-r--r--spec/unit/plugins/zpools_spec.rb2
-rw-r--r--spec/unit/provides_map_spec.rb2
-rw-r--r--spec/unit/runner_spec.rb2
-rw-r--r--spec/unit/system_spec.rb2
-rw-r--r--spec/unit/util/file_helper_spec.rb2
-rw-r--r--spec/unit/util/ip_helper_spec.rb2
139 files changed, 140 insertions, 140 deletions
diff --git a/spec/functional/application_spec.rb b/spec/functional/application_spec.rb
index ff963d56..a49aea05 100644
--- a/spec/functional/application_spec.rb
+++ b/spec/functional/application_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require "spec_helper"
require "ohai/application"
RSpec.describe "Ohai::Application" do
diff --git a/spec/functional/loader_spec.rb b/spec/functional/loader_spec.rb
index 64024e68..033f3271 100644
--- a/spec/functional/loader_spec.rb
+++ b/spec/functional/loader_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require "spec_helper"
RSpec.describe "Ohai::Loader" do
let(:loader) { Ohai::Loader.new(Ohai::System.new) }
diff --git a/spec/functional/plugins/powershell_spec.rb b/spec/functional/plugins/powershell_spec.rb
index 766449c6..f240a073 100644
--- a/spec/functional/plugins/powershell_spec.rb
+++ b/spec/functional/plugins/powershell_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "languages plugin" do
VERSION_MATCHING_REGEX = /^(?:[\d]+\.)+[\d]+$/.freeze
diff --git a/spec/functional/plugins/root_group_spec.rb b/spec/functional/plugins/root_group_spec.rb
index 6bf05f2f..776dbb40 100644
--- a/spec/functional/plugins/root_group_spec.rb
+++ b/spec/functional/plugins/root_group_spec.rb
@@ -18,7 +18,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "root_group plugin" do
let(:plugin) { get_plugin("root_group") }
diff --git a/spec/functional/plugins/windows/uptime_spec.rb b/spec/functional/plugins/windows/uptime_spec.rb
index c613c1f6..276faa63 100644
--- a/spec/functional/plugins/windows/uptime_spec.rb
+++ b/spec/functional/plugins/windows/uptime_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Windows plugin uptime" do
diff --git a/spec/ohai_spec.rb b/spec/ohai_spec.rb
index f3de6b63..e57f7a39 100644
--- a/spec/ohai_spec.rb
+++ b/spec/ohai_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "spec_helper.rb"
+require "spec_helper"
describe Ohai do
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb
index 831fa9c4..2ce52a7f 100644
--- a/spec/unit/application_spec.rb
+++ b/spec/unit/application_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require 'spec_helper'
require "ohai/application"
RSpec.describe "Ohai::Application" do
diff --git a/spec/unit/config_spec.rb b/spec/unit/config_spec.rb
index 63341021..2b92d24a 100644
--- a/spec/unit/config_spec.rb
+++ b/spec/unit/config_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require 'spec_helper'
require "ohai/config"
RSpec.describe Ohai::Config do
diff --git a/spec/unit/dsl/plugin_spec.rb b/spec/unit/dsl/plugin_spec.rb
index 1ba70623..c75926f7 100644
--- a/spec/unit/dsl/plugin_spec.rb
+++ b/spec/unit/dsl/plugin_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
shared_examples "Ohai::DSL::Plugin" do
context "#initialize" do
diff --git a/spec/unit/hints_spec.rb b/spec/unit/hints_spec.rb
index 07c1651f..6e7c2560 100644
--- a/spec/unit/hints_spec.rb
+++ b/spec/unit/hints_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../spec_helper.rb"
+require 'spec_helper'
describe "Ohai::Hints" do
# We are using the plugins directory infrastructure to test hints
diff --git a/spec/unit/loader_spec.rb b/spec/unit/loader_spec.rb
index d752531d..6f01dfa4 100644
--- a/spec/unit/loader_spec.rb
+++ b/spec/unit/loader_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../spec_helper.rb"
+require 'spec_helper'
describe Ohai::Loader do
extend IntegrationSupport
diff --git a/spec/unit/mixin/azure_metadata_spec.rb b/spec/unit/mixin/azure_metadata_spec.rb
index cc216c4b..8d54d264 100644
--- a/spec/unit/mixin/azure_metadata_spec.rb
+++ b/spec/unit/mixin/azure_metadata_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "ohai/mixin/azure_metadata"
describe Ohai::Mixin::AzureMetadata do
diff --git a/spec/unit/mixin/command_spec.rb b/spec/unit/mixin/command_spec.rb
index 59a9475b..9b7181da 100644
--- a/spec/unit/mixin/command_spec.rb
+++ b/spec/unit/mixin/command_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::Mixin::Command, "shell_out" do
let(:cmd) { "sparkle-dream --version" }
diff --git a/spec/unit/mixin/dmi_decode.rb b/spec/unit/mixin/dmi_decode.rb
index 3cc881ed..1e1834a1 100644
--- a/spec/unit/mixin/dmi_decode.rb
+++ b/spec/unit/mixin/dmi_decode.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "ohai/mixin/dmi_decode"
describe Ohai::Mixin::DmiDecode, "guest_from_dmi_data" do
diff --git a/spec/unit/mixin/ec2_metadata_spec.rb b/spec/unit/mixin/ec2_metadata_spec.rb
index f9647179..09cd3a67 100644
--- a/spec/unit/mixin/ec2_metadata_spec.rb
+++ b/spec/unit/mixin/ec2_metadata_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "ohai/mixin/ec2_metadata"
describe Ohai::Mixin::Ec2Metadata do
diff --git a/spec/unit/mixin/softlayer_metadata_spec.rb b/spec/unit/mixin/softlayer_metadata_spec.rb
index 97624ae3..891ba98f 100644
--- a/spec/unit/mixin/softlayer_metadata_spec.rb
+++ b/spec/unit/mixin/softlayer_metadata_spec.rb
@@ -17,7 +17,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "ohai/mixin/softlayer_metadata"
describe ::Ohai::Mixin::SoftlayerMetadata do
diff --git a/spec/unit/plugin_config_spec.rb b/spec/unit/plugin_config_spec.rb
index 8705a427..f5e35456 100644
--- a/spec/unit/plugin_config_spec.rb
+++ b/spec/unit/plugin_config_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require 'spec_helper'
require "ohai/plugin_config"
describe "Ohai::PluginConfig" do
diff --git a/spec/unit/plugins/abort_spec.rb b/spec/unit/plugins/abort_spec.rb
index 57eb0973..7b4ba40a 100644
--- a/spec/unit/plugins/abort_spec.rb
+++ b/spec/unit/plugins/abort_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
tmp = ENV["TMPDIR"] || ENV["TMP"] || ENV["TEMP"] || "/tmp"
diff --git a/spec/unit/plugins/aix/cpu_spec.rb b/spec/unit/plugins/aix/cpu_spec.rb
index f0ea1490..15ef576d 100644
--- a/spec/unit/plugins/aix/cpu_spec.rb
+++ b/spec/unit/plugins/aix/cpu_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "AIX cpu plugin" do
before(:each) do
diff --git a/spec/unit/plugins/aix/filesystem_spec.rb b/spec/unit/plugins/aix/filesystem_spec.rb
index aaa2b146..84547433 100644
--- a/spec/unit/plugins/aix/filesystem_spec.rb
+++ b/spec/unit/plugins/aix/filesystem_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "AIX filesystem plugin" do
before(:each) do
diff --git a/spec/unit/plugins/aix/hostname_spec.rb b/spec/unit/plugins/aix/hostname_spec.rb
index 6f419d58..9ab0991e 100644
--- a/spec/unit/plugins/aix/hostname_spec.rb
+++ b/spec/unit/plugins/aix/hostname_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "AIX hostname plugin" do
before(:each) do
diff --git a/spec/unit/plugins/aix/kernel_spec.rb b/spec/unit/plugins/aix/kernel_spec.rb
index d0c0cded..b7557305 100644
--- a/spec/unit/plugins/aix/kernel_spec.rb
+++ b/spec/unit/plugins/aix/kernel_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "AIX kernel plugin" do
before(:each) do
diff --git a/spec/unit/plugins/aix/memory_spec.rb b/spec/unit/plugins/aix/memory_spec.rb
index 92736445..7aa210ac 100644
--- a/spec/unit/plugins/aix/memory_spec.rb
+++ b/spec/unit/plugins/aix/memory_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "AIX memory plugin" do
before(:each) do
diff --git a/spec/unit/plugins/aix/network_spec.rb b/spec/unit/plugins/aix/network_spec.rb
index 5896a7b5..214c294d 100644
--- a/spec/unit/plugins/aix/network_spec.rb
+++ b/spec/unit/plugins/aix/network_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "AIX network plugin" do
diff --git a/spec/unit/plugins/aix/platform_spec.rb b/spec/unit/plugins/aix/platform_spec.rb
index 10633443..f59a331c 100644
--- a/spec/unit/plugins/aix/platform_spec.rb
+++ b/spec/unit/plugins/aix/platform_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Aix plugin platform" do
before(:each) do
diff --git a/spec/unit/plugins/aix/uptime_spec.rb b/spec/unit/plugins/aix/uptime_spec.rb
index d3cf47c8..611d2951 100644
--- a/spec/unit/plugins/aix/uptime_spec.rb
+++ b/spec/unit/plugins/aix/uptime_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Aix plugin uptime" do
diff --git a/spec/unit/plugins/aix/virtualization_spec.rb b/spec/unit/plugins/aix/virtualization_spec.rb
index 1373f319..6a62e4f8 100644
--- a/spec/unit/plugins/aix/virtualization_spec.rb
+++ b/spec/unit/plugins/aix/virtualization_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "AIX virtualization plugin" do
diff --git a/spec/unit/plugins/azure_spec.rb b/spec/unit/plugins/azure_spec.rb
index 8d041616..4ed22409 100644
--- a/spec/unit/plugins/azure_spec.rb
+++ b/spec/unit/plugins/azure_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "open-uri"
describe Ohai::System, "plugin azure" do
diff --git a/spec/unit/plugins/bsd/filesystem_spec.rb b/spec/unit/plugins/bsd/filesystem_spec.rb
index c64981d8..41aaf937 100644
--- a/spec/unit/plugins/bsd/filesystem_spec.rb
+++ b/spec/unit/plugins/bsd/filesystem_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "BSD filesystem plugin" do
let(:plugin) { get_plugin("filesystem") }
diff --git a/spec/unit/plugins/bsd/virtualization_spec.rb b/spec/unit/plugins/bsd/virtualization_spec.rb
index e8922dd8..c108e86d 100644
--- a/spec/unit/plugins/bsd/virtualization_spec.rb
+++ b/spec/unit/plugins/bsd/virtualization_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "BSD virtualization plugin" do
let(:plugin) { get_plugin("bsd/virtualization") }
diff --git a/spec/unit/plugins/c_spec.rb b/spec/unit/plugins/c_spec.rb
index 4395889c..9d276e17 100644
--- a/spec/unit/plugins/c_spec.rb
+++ b/spec/unit/plugins/c_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
C_GCC = <<~EOF.freeze
Using built-in specs.
diff --git a/spec/unit/plugins/chef_spec.rb b/spec/unit/plugins/chef_spec.rb
index 773fa349..3ebaf995 100644
--- a/spec/unit/plugins/chef_spec.rb
+++ b/spec/unit/plugins/chef_spec.rb
@@ -19,7 +19,7 @@
#
begin
- require_relative "../../spec_helper.rb"
+ require 'spec_helper'
require "chef/version"
describe Ohai::System, "plugin chef" do
diff --git a/spec/unit/plugins/cloud_spec.rb b/spec/unit/plugins/cloud_spec.rb
index e26205d4..a07a1d1b 100644
--- a/spec/unit/plugins/cloud_spec.rb
+++ b/spec/unit/plugins/cloud_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "ipaddr"
describe "CloudAttrs object" do
diff --git a/spec/unit/plugins/darwin/cpu_spec.rb b/spec/unit/plugins/darwin/cpu_spec.rb
index a1c54e54..d360c8c1 100644
--- a/spec/unit/plugins/darwin/cpu_spec.rb
+++ b/spec/unit/plugins/darwin/cpu_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Darwin cpu plugin" do
before(:each) do
diff --git a/spec/unit/plugins/darwin/filesystem_spec.rb b/spec/unit/plugins/darwin/filesystem_spec.rb
index a9ce95d4..14b111ad 100644
--- a/spec/unit/plugins/darwin/filesystem_spec.rb
+++ b/spec/unit/plugins/darwin/filesystem_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "darwin filesystem plugin" do
let(:plugin) { get_plugin("filesystem") }
diff --git a/spec/unit/plugins/darwin/hardware_spec.rb b/spec/unit/plugins/darwin/hardware_spec.rb
index 5c456f19..d3878de1 100644
--- a/spec/unit/plugins/darwin/hardware_spec.rb
+++ b/spec/unit/plugins/darwin/hardware_spec.rb
@@ -16,8 +16,8 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
-require_relative "hardware_system_profiler_output.rb"
+require 'spec_helper'
+require_relative "hardware_system_profiler_output"
describe Ohai::System, "Darwin hardware plugin", :unix_only do
let(:plugin) { get_plugin("darwin/hardware") }
diff --git a/spec/unit/plugins/darwin/hostname_spec.rb b/spec/unit/plugins/darwin/hostname_spec.rb
index 05184b83..bd1d326d 100644
--- a/spec/unit/plugins/darwin/hostname_spec.rb
+++ b/spec/unit/plugins/darwin/hostname_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Darwin hostname plugin" do
before(:each) do
diff --git a/spec/unit/plugins/darwin/kernel_spec.rb b/spec/unit/plugins/darwin/kernel_spec.rb
index 901962ba..93362119 100644
--- a/spec/unit/plugins/darwin/kernel_spec.rb
+++ b/spec/unit/plugins/darwin/kernel_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Darwin kernel plugin" do
before(:each) do
diff --git a/spec/unit/plugins/darwin/memory_spec.rb b/spec/unit/plugins/darwin/memory_spec.rb
index b4bdf907..b1cf115b 100644
--- a/spec/unit/plugins/darwin/memory_spec.rb
+++ b/spec/unit/plugins/darwin/memory_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Darwin Memory Plugin" do
before(:each) do
diff --git a/spec/unit/plugins/darwin/network_spec.rb b/spec/unit/plugins/darwin/network_spec.rb
index 65300b9f..9db919fa 100644
--- a/spec/unit/plugins/darwin/network_spec.rb
+++ b/spec/unit/plugins/darwin/network_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Darwin Network Plugin" do
before(:each) do
diff --git a/spec/unit/plugins/darwin/platform_spec.rb b/spec/unit/plugins/darwin/platform_spec.rb
index 2820caa0..b63ebb8d 100644
--- a/spec/unit/plugins/darwin/platform_spec.rb
+++ b/spec/unit/plugins/darwin/platform_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Darwin plugin platform" do
before(:each) do
diff --git a/spec/unit/plugins/darwin/virtualization_spec.rb b/spec/unit/plugins/darwin/virtualization_spec.rb
index 7b9fef2a..6e71b59f 100644
--- a/spec/unit/plugins/darwin/virtualization_spec.rb
+++ b/spec/unit/plugins/darwin/virtualization_spec.rb
@@ -18,7 +18,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Darwin virtualization platform" do
let(:plugin) { get_plugin("darwin/virtualization") }
diff --git a/spec/unit/plugins/dmi_spec.rb b/spec/unit/plugins/dmi_spec.rb
index f43e540e..e79670b9 100644
--- a/spec/unit/plugins/dmi_spec.rb
+++ b/spec/unit/plugins/dmi_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
# NOTE: These data lines must be prefixed with one or two tabs, not spaces.
DMI_OUT = <<~EOS.freeze
diff --git a/spec/unit/plugins/docker_spec.rb b/spec/unit/plugins/docker_spec.rb
index 3b839636..8cd2a6ee 100644
--- a/spec/unit/plugins/docker_spec.rb
+++ b/spec/unit/plugins/docker_spec.rb
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
docker_output = <<~EOF
{"ID":"KZET:VDFN:2V2G:JS5Z:HAKO:SOGI:AFSZ:HDMT:GVEM:V2NT:DUSW:J3Z6","Containers":11,"ContainersRunning":0,"ContainersPaused":0,"ContainersStopped":11,"Images":30,"Driver":"overlay2","DriverStatus":[["Backing Filesystem","extfs"],["Supports d_type","true"],["Native Overlay Diff","true"]],"SystemStatus":null,"Plugins":{"Volume":["local"],"Network":["bridge","host","ipvlan","macvlan","null","overlay"],"Authorization":null,"Log":["awslogs","fluentd","gcplogs","gelf","journald","json-file","logentries","splunk","syslog"]},"MemoryLimit":true,"SwapLimit":true,"KernelMemory":true,"CpuCfsPeriod":true,"CpuCfsQuota":true,"CPUShares":true,"CPUSet":true,"IPv4Forwarding":true,"BridgeNfIptables":true,"BridgeNfIp6tables":true,"Debug":true,"NFd":21,"OomKillDisable":true,"NGoroutines":39,"SystemTime":"2018-02-15T19:12:40.214106068Z","LoggingDriver":"json-file","CgroupDriver":"cgroupfs","NEventsListener":2,"KernelVersion":"4.9.60-linuxkit-aufs","OperatingSystem":"Docker for Mac","OSType":"linux","Architecture":"x86_64","IndexServerAddress":"https://index.docker.io/v1/","RegistryConfig":{"AllowNondistributableArtifactsCIDRs":[],"AllowNondistributableArtifactsHostnames":[],"InsecureRegistryCIDRs":["127.0.0.0/8"],"IndexConfigs":{"docker.io":{"Name":"docker.io","Mirrors":[],"Secure":true,"Official":true}},"Mirrors":[]},"NCPU":4,"MemTotal":2095816704,"GenericResources":null,"DockerRootDir":"/var/lib/docker","HttpProxy":"docker.for.mac.http.internal:3128","HttpsProxy":"docker.for.mac.http.internal:3129","NoProxy":"","Name":"linuxkit-025000000001","Labels":[],"ExperimentalBuild":true,"ServerVersion":"17.12.0-ce","ClusterStore":"","ClusterAdvertise":"","Runtimes":{"runc":{"path":"docker-runc"}},"DefaultRuntime":"runc","Swarm":{"NodeID":"","NodeAddr":"","LocalNodeState":"inactive","ControlAvailable":false,"Error":"","RemoteManagers":null},"LiveRestoreEnabled":false,"Isolation":"","InitBinary":"docker-init","ContainerdCommit":{"ID":"89623f28b87a6004d4b785663257362d1658a729","Expected":"89623f28b87a6004d4b785663257362d1658a729"},"RuncCommit":{"ID":"b2567b37d7b75eb4cf325b77297b140ea686ce8f","Expected":"b2567b37d7b75eb4cf325b77297b140ea686ce8f"},"InitCommit":{"ID":"949e6fa","Expected":"949e6fa"},"SecurityOptions":["name=seccomp,profile=default"]}
diff --git a/spec/unit/plugins/ec2_spec.rb b/spec/unit/plugins/ec2_spec.rb
index 6103d1a7..07472840 100644
--- a/spec/unit/plugins/ec2_spec.rb
+++ b/spec/unit/plugins/ec2_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "open-uri"
require "base64"
diff --git a/spec/unit/plugins/elixir_spec.rb b/spec/unit/plugins/elixir_spec.rb
index b038bd56..616cfd78 100644
--- a/spec/unit/plugins/elixir_spec.rb
+++ b/spec/unit/plugins/elixir_spec.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin elixir" do
let(:plugin) { get_plugin("elixir") }
diff --git a/spec/unit/plugins/erlang_spec.rb b/spec/unit/plugins/erlang_spec.rb
index 78e16446..b4675222 100644
--- a/spec/unit/plugins/erlang_spec.rb
+++ b/spec/unit/plugins/erlang_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin erlang" do
let(:plugin) { get_plugin("erlang") }
diff --git a/spec/unit/plugins/eucalyptus_spec.rb b/spec/unit/plugins/eucalyptus_spec.rb
index a21c203b..66e3afa5 100644
--- a/spec/unit/plugins/eucalyptus_spec.rb
+++ b/spec/unit/plugins/eucalyptus_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "open-uri"
describe Ohai::System, "plugin eucalyptus" do
diff --git a/spec/unit/plugins/fail_spec.rb b/spec/unit/plugins/fail_spec.rb
index 85fb28b3..d768a411 100644
--- a/spec/unit/plugins/fail_spec.rb
+++ b/spec/unit/plugins/fail_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
tmp = ENV["TMPDIR"] || ENV["TMP"] || ENV["TEMP"] || "/tmp"
diff --git a/spec/unit/plugins/freebsd/cpu_spec.rb b/spec/unit/plugins/freebsd/cpu_spec.rb
index 9f96f33b..8b0b6809 100644
--- a/spec/unit/plugins/freebsd/cpu_spec.rb
+++ b/spec/unit/plugins/freebsd/cpu_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "FreeBSD cpu plugin on FreeBSD >=10.2" do
before(:each) do
diff --git a/spec/unit/plugins/freebsd/hostname_spec.rb b/spec/unit/plugins/freebsd/hostname_spec.rb
index 2f96c4ed..f7b59470 100644
--- a/spec/unit/plugins/freebsd/hostname_spec.rb
+++ b/spec/unit/plugins/freebsd/hostname_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "FreeBSD hostname plugin" do
before(:each) do
diff --git a/spec/unit/plugins/freebsd/kernel_spec.rb b/spec/unit/plugins/freebsd/kernel_spec.rb
index d79379db..429c37c0 100644
--- a/spec/unit/plugins/freebsd/kernel_spec.rb
+++ b/spec/unit/plugins/freebsd/kernel_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "FreeBSD kernel plugin" do
before(:each) do
diff --git a/spec/unit/plugins/freebsd/platform_spec.rb b/spec/unit/plugins/freebsd/platform_spec.rb
index fddf01b3..40f7dd6c 100644
--- a/spec/unit/plugins/freebsd/platform_spec.rb
+++ b/spec/unit/plugins/freebsd/platform_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "FreeBSD plugin platform" do
before(:each) do
diff --git a/spec/unit/plugins/gce_spec.rb b/spec/unit/plugins/gce_spec.rb
index e769a9d2..387db6a0 100644
--- a/spec/unit/plugins/gce_spec.rb
+++ b/spec/unit/plugins/gce_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "open-uri"
describe Ohai::System, "plugin gce" do
diff --git a/spec/unit/plugins/go_spec.rb b/spec/unit/plugins/go_spec.rb
index 86d018c2..85103a18 100644
--- a/spec/unit/plugins/go_spec.rb
+++ b/spec/unit/plugins/go_spec.rb
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin go" do
let(:plugin) { get_plugin("go") }
diff --git a/spec/unit/plugins/groovy_spec.rb b/spec/unit/plugins/groovy_spec.rb
index 3deed839..b9b4749d 100644
--- a/spec/unit/plugins/groovy_spec.rb
+++ b/spec/unit/plugins/groovy_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin groovy" do
let(:plugin) { get_plugin("groovy") }
diff --git a/spec/unit/plugins/haskell_spec.rb b/spec/unit/plugins/haskell_spec.rb
index e68aaf76..158a6aec 100644
--- a/spec/unit/plugins/haskell_spec.rb
+++ b/spec/unit/plugins/haskell_spec.rb
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin haskell" do
diff --git a/spec/unit/plugins/hostname_spec.rb b/spec/unit/plugins/hostname_spec.rb
index c4523434..e85f0672 100644
--- a/spec/unit/plugins/hostname_spec.rb
+++ b/spec/unit/plugins/hostname_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "wmi-lite/wmi"
require "socket"
diff --git a/spec/unit/plugins/init_package_spec.rb b/spec/unit/plugins/init_package_spec.rb
index 4cf597e1..96f4bbb2 100644
--- a/spec/unit/plugins/init_package_spec.rb
+++ b/spec/unit/plugins/init_package_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Init package" do
let(:plugin) do
diff --git a/spec/unit/plugins/java_spec.rb b/spec/unit/plugins/java_spec.rb
index 148eab56..3d4c8cf9 100644
--- a/spec/unit/plugins/java_spec.rb
+++ b/spec/unit/plugins/java_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin java (Java5 Client VM)" do
let(:plugin) { get_plugin("java") }
diff --git a/spec/unit/plugins/joyent_spec.rb b/spec/unit/plugins/joyent_spec.rb
index 6e8f17c8..6f8d0712 100644
--- a/spec/unit/plugins/joyent_spec.rb
+++ b/spec/unit/plugins/joyent_spec.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin joyent" do
let(:plugin) { get_plugin("joyent") }
diff --git a/spec/unit/plugins/kernel_spec.rb b/spec/unit/plugins/kernel_spec.rb
index 8e25975e..7b0f8a67 100644
--- a/spec/unit/plugins/kernel_spec.rb
+++ b/spec/unit/plugins/kernel_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin kernel" do
before(:each) do
diff --git a/spec/unit/plugins/linode_spec.rb b/spec/unit/plugins/linode_spec.rb
index 866a6ba2..fe5adc20 100644
--- a/spec/unit/plugins/linode_spec.rb
+++ b/spec/unit/plugins/linode_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin linode" do
let(:plugin) { get_plugin("linode") }
diff --git a/spec/unit/plugins/linux/block_device_spec.rb b/spec/unit/plugins/linux/block_device_spec.rb
index 0ae45036..62a57d0f 100644
--- a/spec/unit/plugins/linux/block_device_spec.rb
+++ b/spec/unit/plugins/linux/block_device_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux Block Device Plugin" do
DISKS = {
diff --git a/spec/unit/plugins/linux/cpu_spec.rb b/spec/unit/plugins/linux/cpu_spec.rb
index badd3271..26131612 100644
--- a/spec/unit/plugins/linux/cpu_spec.rb
+++ b/spec/unit/plugins/linux/cpu_spec.rb
@@ -17,7 +17,7 @@
#
require "tempfile"
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
shared_examples "Common cpu info" do |total_cpu, real_cpu|
describe "cpu" do
diff --git a/spec/unit/plugins/linux/filesystem_spec.rb b/spec/unit/plugins/linux/filesystem_spec.rb
index dac7eee8..c78a11f0 100644
--- a/spec/unit/plugins/linux/filesystem_spec.rb
+++ b/spec/unit/plugins/linux/filesystem_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux filesystem plugin" do
let(:plugin) { get_plugin("filesystem") }
diff --git a/spec/unit/plugins/linux/fips_spec.rb b/spec/unit/plugins/linux/fips_spec.rb
index dc4e1fe6..9b18269d 100644
--- a/spec/unit/plugins/linux/fips_spec.rb
+++ b/spec/unit/plugins/linux/fips_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
require "openssl"
describe Ohai::System, "plugin fips" do
diff --git a/spec/unit/plugins/linux/hostname_spec.rb b/spec/unit/plugins/linux/hostname_spec.rb
index b81d77e0..1af8eec8 100644
--- a/spec/unit/plugins/linux/hostname_spec.rb
+++ b/spec/unit/plugins/linux/hostname_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux hostname plugin" do
before(:each) do
diff --git a/spec/unit/plugins/linux/hostnamectl_spec.rb b/spec/unit/plugins/linux/hostnamectl_spec.rb
index 774cdb88..34683b5c 100644
--- a/spec/unit/plugins/linux/hostnamectl_spec.rb
+++ b/spec/unit/plugins/linux/hostnamectl_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux hostnamectl plugin" do
let(:plugin) { get_plugin("linux/hostnamectl") }
diff --git a/spec/unit/plugins/linux/kernel_spec.rb b/spec/unit/plugins/linux/kernel_spec.rb
index ff3591da..6622471c 100644
--- a/spec/unit/plugins/linux/kernel_spec.rb
+++ b/spec/unit/plugins/linux/kernel_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux kernel plugin" do
before(:each) do
diff --git a/spec/unit/plugins/linux/lsb_spec.rb b/spec/unit/plugins/linux/lsb_spec.rb
index 7535be33..2dc7fa61 100644
--- a/spec/unit/plugins/linux/lsb_spec.rb
+++ b/spec/unit/plugins/linux/lsb_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
# We do not alter case for lsb attributes and consume them as provided
diff --git a/spec/unit/plugins/linux/lspci_spec.rb b/spec/unit/plugins/linux/lspci_spec.rb
index bcf49c93..91e1a639 100644
--- a/spec/unit/plugins/linux/lspci_spec.rb
+++ b/spec/unit/plugins/linux/lspci_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux lspci plugin" do
let(:plugin) { get_plugin("linux/lspci") }
diff --git a/spec/unit/plugins/linux/machineid_spec.rb b/spec/unit/plugins/linux/machineid_spec.rb
index 3c601ac2..b5c9b148 100644
--- a/spec/unit/plugins/linux/machineid_spec.rb
+++ b/spec/unit/plugins/linux/machineid_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Machine id plugin" do
let(:plugin) { get_plugin("linux/machineid") }
diff --git a/spec/unit/plugins/linux/mdadm_spec.rb b/spec/unit/plugins/linux/mdadm_spec.rb
index f2679fdb..599fb032 100644
--- a/spec/unit/plugins/linux/mdadm_spec.rb
+++ b/spec/unit/plugins/linux/mdadm_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux Mdadm Plugin" do
before(:each) do
diff --git a/spec/unit/plugins/linux/memory_spec.rb b/spec/unit/plugins/linux/memory_spec.rb
index b2bda21f..c78fb110 100644
--- a/spec/unit/plugins/linux/memory_spec.rb
+++ b/spec/unit/plugins/linux/memory_spec.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux memory plugin" do
before(:each) do
diff --git a/spec/unit/plugins/linux/network_spec.rb b/spec/unit/plugins/linux/network_spec.rb
index 1658a6f5..29686249 100644
--- a/spec/unit/plugins/linux/network_spec.rb
+++ b/spec/unit/plugins/linux/network_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
require "ipaddress"
describe Ohai::System, "Linux Network Plugin" do
diff --git a/spec/unit/plugins/linux/platform_spec.rb b/spec/unit/plugins/linux/platform_spec.rb
index bd81344c..aefb9867 100644
--- a/spec/unit/plugins/linux/platform_spec.rb
+++ b/spec/unit/plugins/linux/platform_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux plugin platform" do
let(:plugin) { get_plugin("linux/platform") }
diff --git a/spec/unit/plugins/linux/sessions_spec.rb b/spec/unit/plugins/linux/sessions_spec.rb
index 988cbd6f..9f86722c 100644
--- a/spec/unit/plugins/linux/sessions_spec.rb
+++ b/spec/unit/plugins/linux/sessions_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux sessions plugin" do
let(:plugin) { get_plugin("linux/sessions") }
diff --git a/spec/unit/plugins/linux/uptime_spec.rb b/spec/unit/plugins/linux/uptime_spec.rb
index 028b7f0c..95ea4c96 100644
--- a/spec/unit/plugins/linux/uptime_spec.rb
+++ b/spec/unit/plugins/linux/uptime_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux plugin uptime" do
before(:each) do
diff --git a/spec/unit/plugins/linux/virtualization_spec.rb b/spec/unit/plugins/linux/virtualization_spec.rb
index 45cddec2..a7de6971 100644
--- a/spec/unit/plugins/linux/virtualization_spec.rb
+++ b/spec/unit/plugins/linux/virtualization_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Linux virtualization platform" do
let(:plugin) { get_plugin("linux/virtualization") }
diff --git a/spec/unit/plugins/lua_spec.rb b/spec/unit/plugins/lua_spec.rb
index 58ddeba5..335e8607 100644
--- a/spec/unit/plugins/lua_spec.rb
+++ b/spec/unit/plugins/lua_spec.rb
@@ -18,7 +18,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin lua" do
diff --git a/spec/unit/plugins/mono_spec.rb b/spec/unit/plugins/mono_spec.rb
index c60f3961..5cc09316 100644
--- a/spec/unit/plugins/mono_spec.rb
+++ b/spec/unit/plugins/mono_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin mono" do
let(:plugin) { get_plugin("mono") }
diff --git a/spec/unit/plugins/netbsd/hostname_spec.rb b/spec/unit/plugins/netbsd/hostname_spec.rb
index d6e94e87..48bd0407 100644
--- a/spec/unit/plugins/netbsd/hostname_spec.rb
+++ b/spec/unit/plugins/netbsd/hostname_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "NetBSD hostname plugin" do
before(:each) do
diff --git a/spec/unit/plugins/netbsd/kernel_spec.rb b/spec/unit/plugins/netbsd/kernel_spec.rb
index 7248a2fa..b804c728 100644
--- a/spec/unit/plugins/netbsd/kernel_spec.rb
+++ b/spec/unit/plugins/netbsd/kernel_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "NetBSD kernel plugin" do
before(:each) do
diff --git a/spec/unit/plugins/netbsd/platform_spec.rb b/spec/unit/plugins/netbsd/platform_spec.rb
index 48e54af5..d0d25259 100644
--- a/spec/unit/plugins/netbsd/platform_spec.rb
+++ b/spec/unit/plugins/netbsd/platform_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "NetBSD plugin platform" do
before(:each) do
diff --git a/spec/unit/plugins/network_spec.rb b/spec/unit/plugins/network_spec.rb
index 45c002d5..225e1997 100644
--- a/spec/unit/plugins/network_spec.rb
+++ b/spec/unit/plugins/network_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
def it_doesnt_fail
it "doesnt fail" do
diff --git a/spec/unit/plugins/nodejs_spec.rb b/spec/unit/plugins/nodejs_spec.rb
index cd0d377d..c603cb98 100644
--- a/spec/unit/plugins/nodejs_spec.rb
+++ b/spec/unit/plugins/nodejs_spec.rb
@@ -18,7 +18,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin nodejs" do
diff --git a/spec/unit/plugins/ohai_spec.rb b/spec/unit/plugins/ohai_spec.rb
index f7f1f23c..42b2eb2a 100644
--- a/spec/unit/plugins/ohai_spec.rb
+++ b/spec/unit/plugins/ohai_spec.rb
@@ -18,7 +18,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin ohai" do
before(:each) do
diff --git a/spec/unit/plugins/ohai_time_spec.rb b/spec/unit/plugins/ohai_time_spec.rb
index 7f2c8585..d7116d2f 100644
--- a/spec/unit/plugins/ohai_time_spec.rb
+++ b/spec/unit/plugins/ohai_time_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin ohai_time" do
before(:each) do
diff --git a/spec/unit/plugins/openbsd/hostname_spec.rb b/spec/unit/plugins/openbsd/hostname_spec.rb
index cfc33309..92564d49 100644
--- a/spec/unit/plugins/openbsd/hostname_spec.rb
+++ b/spec/unit/plugins/openbsd/hostname_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "OpenBSD hostname plugin" do
before(:each) do
diff --git a/spec/unit/plugins/openbsd/kernel_spec.rb b/spec/unit/plugins/openbsd/kernel_spec.rb
index 8d48ac7a..2ddc27d7 100644
--- a/spec/unit/plugins/openbsd/kernel_spec.rb
+++ b/spec/unit/plugins/openbsd/kernel_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "OpenBSD kernel plugin" do
before(:each) do
diff --git a/spec/unit/plugins/openbsd/platform_spec.rb b/spec/unit/plugins/openbsd/platform_spec.rb
index 985aaf38..b09f1405 100644
--- a/spec/unit/plugins/openbsd/platform_spec.rb
+++ b/spec/unit/plugins/openbsd/platform_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "OpenBSD plugin platform" do
before(:each) do
diff --git a/spec/unit/plugins/openstack_spec.rb b/spec/unit/plugins/openstack_spec.rb
index 7089c7bf..8d236e07 100644
--- a/spec/unit/plugins/openstack_spec.rb
+++ b/spec/unit/plugins/openstack_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin openstack" do
diff --git a/spec/unit/plugins/os_spec.rb b/spec/unit/plugins/os_spec.rb
index f054757b..0e34b509 100644
--- a/spec/unit/plugins/os_spec.rb
+++ b/spec/unit/plugins/os_spec.rb
@@ -19,7 +19,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
ORIGINAL_CONFIG_HOST_OS = ::RbConfig::CONFIG["host_os"]
diff --git a/spec/unit/plugins/packages_spec.rb b/spec/unit/plugins/packages_spec.rb
index 5e5d922f..f09b9a9c 100644
--- a/spec/unit/plugins/packages_spec.rb
+++ b/spec/unit/plugins/packages_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin packages" do
context "on debian" do
diff --git a/spec/unit/plugins/passwd_spec.rb b/spec/unit/plugins/passwd_spec.rb
index 4d82da52..74da161e 100644
--- a/spec/unit/plugins/passwd_spec.rb
+++ b/spec/unit/plugins/passwd_spec.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin etc", :unix_only do
before(:each) do
diff --git a/spec/unit/plugins/perl_spec.rb b/spec/unit/plugins/perl_spec.rb
index b5fd2f42..06100e77 100644
--- a/spec/unit/plugins/perl_spec.rb
+++ b/spec/unit/plugins/perl_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin perl" do
let(:plugin) { get_plugin("perl") }
diff --git a/spec/unit/plugins/php_spec.rb b/spec/unit/plugins/php_spec.rb
index fcb38bbc..e77a0844 100644
--- a/spec/unit/plugins/php_spec.rb
+++ b/spec/unit/plugins/php_spec.rb
@@ -18,7 +18,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin php" do
let(:plugin) { get_plugin("php") }
diff --git a/spec/unit/plugins/platform_spec.rb b/spec/unit/plugins/platform_spec.rb
index 9cd508f3..b7e177f2 100644
--- a/spec/unit/plugins/platform_spec.rb
+++ b/spec/unit/plugins/platform_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin platform" do
before(:each) do
diff --git a/spec/unit/plugins/powershell_spec.rb b/spec/unit/plugins/powershell_spec.rb
index 92fe0fb5..ca901da6 100644
--- a/spec/unit/plugins/powershell_spec.rb
+++ b/spec/unit/plugins/powershell_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin powershell" do
let(:plugin) { get_plugin("powershell") }
diff --git a/spec/unit/plugins/python_spec.rb b/spec/unit/plugins/python_spec.rb
index d92f0f45..6d517e59 100644
--- a/spec/unit/plugins/python_spec.rb
+++ b/spec/unit/plugins/python_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin python" do
let(:stdout) { "2.5.2 (r252:60911, Jan 4 2009, 17:40:26)\n[GCC 4.3.2]\n" }
diff --git a/spec/unit/plugins/rackspace_spec.rb b/spec/unit/plugins/rackspace_spec.rb
index 99c82621..d3468d7f 100644
--- a/spec/unit/plugins/rackspace_spec.rb
+++ b/spec/unit/plugins/rackspace_spec.rb
@@ -16,7 +16,7 @@
#
require "resolv"
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin rackspace" do
let(:plugin) { get_plugin("rackspace") }
diff --git a/spec/unit/plugins/root_group_spec.rb b/spec/unit/plugins/root_group_spec.rb
index 3eca5dd8..07e7c3b5 100644
--- a/spec/unit/plugins/root_group_spec.rb
+++ b/spec/unit/plugins/root_group_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "root_group" do
before(:each) do
diff --git a/spec/unit/plugins/ruby_spec.rb b/spec/unit/plugins/ruby_spec.rb
index 91714821..be151fd4 100644
--- a/spec/unit/plugins/ruby_spec.rb
+++ b/spec/unit/plugins/ruby_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
ruby_bin = File.join(::RbConfig::CONFIG["bindir"], ::RbConfig::CONFIG["ruby_install_name"])
diff --git a/spec/unit/plugins/rust_spec.rb b/spec/unit/plugins/rust_spec.rb
index 8046d0ee..183550db 100644
--- a/spec/unit/plugins/rust_spec.rb
+++ b/spec/unit/plugins/rust_spec.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin rust" do
let(:stdout) { "rustc 1.0.0-nightly (29bd9a06e 2015-01-20 23:03:09 +0000)" }
diff --git a/spec/unit/plugins/scala_spec.rb b/spec/unit/plugins/scala_spec.rb
index 76656c98..60bf9a10 100644
--- a/spec/unit/plugins/scala_spec.rb
+++ b/spec/unit/plugins/scala_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin scala" do
diff --git a/spec/unit/plugins/scsi_spec.rb b/spec/unit/plugins/scsi_spec.rb
index e2f2fc34..6c9b37f5 100644
--- a/spec/unit/plugins/scsi_spec.rb
+++ b/spec/unit/plugins/scsi_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "lsscsi plugin" do
let(:plugin) { get_plugin("scsi") }
diff --git a/spec/unit/plugins/shard_spec.rb b/spec/unit/plugins/shard_spec.rb
index 852c82f1..4235ede4 100644
--- a/spec/unit/plugins/shard_spec.rb
+++ b/spec/unit/plugins/shard_spec.rb
@@ -17,7 +17,7 @@
#
require "digest/md5"
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "shard plugin" do
let(:plugin) { get_plugin("shard") }
diff --git a/spec/unit/plugins/shells_spec.rb b/spec/unit/plugins/shells_spec.rb
index 13347767..d03df2d0 100644
--- a/spec/unit/plugins/shells_spec.rb
+++ b/spec/unit/plugins/shells_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin shells" do
let(:plugin) { get_plugin("shells") }
diff --git a/spec/unit/plugins/softlayer_spec.rb b/spec/unit/plugins/softlayer_spec.rb
index 45e63f57..24b3ee7e 100644
--- a/spec/unit/plugins/softlayer_spec.rb
+++ b/spec/unit/plugins/softlayer_spec.rb
@@ -17,7 +17,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin softlayer" do
let(:plugin) { get_plugin("softlayer") }
diff --git a/spec/unit/plugins/solaris2/cpu_spec.rb b/spec/unit/plugins/solaris2/cpu_spec.rb
index 83be6589..23e84ce9 100644
--- a/spec/unit/plugins/solaris2/cpu_spec.rb
+++ b/spec/unit/plugins/solaris2/cpu_spec.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Solaris2.X cpu plugin" do
before(:each) do
diff --git a/spec/unit/plugins/solaris2/dmi_spec.rb b/spec/unit/plugins/solaris2/dmi_spec.rb
index b4bfdfab..0836ce09 100644
--- a/spec/unit/plugins/solaris2/dmi_spec.rb
+++ b/spec/unit/plugins/solaris2/dmi_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
SOLARIS_DMI_OUT = <<~EOS.freeze
ID SIZE TYPE
diff --git a/spec/unit/plugins/solaris2/filesystem.rb b/spec/unit/plugins/solaris2/filesystem.rb
index a91eb926..d60432eb 100644
--- a/spec/unit/plugins/solaris2/filesystem.rb
+++ b/spec/unit/plugins/solaris2/filesystem.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper"
+require_relative "spec_helper"
describe Ohai::System, "Solaris2.X filesystem plugin" do
let(:plugin) { get_plugin("filesystem") }
diff --git a/spec/unit/plugins/solaris2/hostname_spec.rb b/spec/unit/plugins/solaris2/hostname_spec.rb
index 707ef687..edfaa170 100644
--- a/spec/unit/plugins/solaris2/hostname_spec.rb
+++ b/spec/unit/plugins/solaris2/hostname_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Solaris2.X hostname plugin" do
before(:each) do
diff --git a/spec/unit/plugins/solaris2/kernel_spec.rb b/spec/unit/plugins/solaris2/kernel_spec.rb
index 4f7d0135..e7ee0a9a 100644
--- a/spec/unit/plugins/solaris2/kernel_spec.rb
+++ b/spec/unit/plugins/solaris2/kernel_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Solaris2.X kernel plugin" do
# NOTE: Solaris will report the same module loaded multiple times
diff --git a/spec/unit/plugins/solaris2/memory_spec.rb b/spec/unit/plugins/solaris2/memory_spec.rb
index c64ae2c4..2eea4ae9 100644
--- a/spec/unit/plugins/solaris2/memory_spec.rb
+++ b/spec/unit/plugins/solaris2/memory_spec.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Solaris2.X memory plugin" do
before(:each) do
diff --git a/spec/unit/plugins/solaris2/network_spec.rb b/spec/unit/plugins/solaris2/network_spec.rb
index a14c1a65..a5253a56 100644
--- a/spec/unit/plugins/solaris2/network_spec.rb
+++ b/spec/unit/plugins/solaris2/network_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Solaris2.X network plugin" do
diff --git a/spec/unit/plugins/solaris2/platform_spec.rb b/spec/unit/plugins/solaris2/platform_spec.rb
index c819ec9a..d5101146 100644
--- a/spec/unit/plugins/solaris2/platform_spec.rb
+++ b/spec/unit/plugins/solaris2/platform_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Solaris plugin platform" do
before(:each) do
diff --git a/spec/unit/plugins/solaris2/virtualization_spec.rb b/spec/unit/plugins/solaris2/virtualization_spec.rb
index e1df7194..2836849d 100644
--- a/spec/unit/plugins/solaris2/virtualization_spec.rb
+++ b/spec/unit/plugins/solaris2/virtualization_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Solaris virtualization platform" do
let(:plugin) { get_plugin("solaris2/virtualization") }
diff --git a/spec/unit/plugins/ssh_host_keys_spec.rb b/spec/unit/plugins/ssh_host_keys_spec.rb
index e3017ee9..9291bbf2 100644
--- a/spec/unit/plugins/ssh_host_keys_spec.rb
+++ b/spec/unit/plugins/ssh_host_keys_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "ssh_host_key plugin" do
diff --git a/spec/unit/plugins/sysconf_spec.rb b/spec/unit/plugins/sysconf_spec.rb
index 205be184..e694b64a 100644
--- a/spec/unit/plugins/sysconf_spec.rb
+++ b/spec/unit/plugins/sysconf_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "sysconf plugin", :unix_only do
let(:plugin) { get_plugin("sysconf") }
diff --git a/spec/unit/plugins/timezone_spec.rb b/spec/unit/plugins/timezone_spec.rb
index 29368a8b..522c2cc6 100644
--- a/spec/unit/plugins/timezone_spec.rb
+++ b/spec/unit/plugins/timezone_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "timezone plugin" do
before(:each) do
diff --git a/spec/unit/plugins/virtualbox_spec.rb b/spec/unit/plugins/virtualbox_spec.rb
index dd9819be..92eac2e3 100644
--- a/spec/unit/plugins/virtualbox_spec.rb
+++ b/spec/unit/plugins/virtualbox_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
vbox_output = <<~EOF
Oracle VM VirtualBox Guest Additions Command Line Management Interface Version 5.0.2
diff --git a/spec/unit/plugins/vmware_spec.rb b/spec/unit/plugins/vmware_spec.rb
index e568fd44..cc5fa33a 100644
--- a/spec/unit/plugins/vmware_spec.rb
+++ b/spec/unit/plugins/vmware_spec.rb
@@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "plugin vmware" do
let(:plugin) { get_plugin("vmware") }
diff --git a/spec/unit/plugins/windows/cpu_spec.rb b/spec/unit/plugins/windows/cpu_spec.rb
index c0a17bd7..acafbdc8 100644
--- a/spec/unit/plugins/windows/cpu_spec.rb
+++ b/spec/unit/plugins/windows/cpu_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
shared_examples "a cpu" do |cpu_no|
describe "cpu #{cpu_no}" do
diff --git a/spec/unit/plugins/windows/filesystem_spec.rb b/spec/unit/plugins/windows/filesystem_spec.rb
index 19c95a6c..1698e2a7 100644
--- a/spec/unit/plugins/windows/filesystem_spec.rb
+++ b/spec/unit/plugins/windows/filesystem_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
require "wmi-lite/wmi"
describe Ohai::System, "Windows Filesystem Plugin", :windows_only do
diff --git a/spec/unit/plugins/windows/fips_spec.rb b/spec/unit/plugins/windows/fips_spec.rb
index 28ef1bce..ce0eae28 100644
--- a/spec/unit/plugins/windows/fips_spec.rb
+++ b/spec/unit/plugins/windows/fips_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
require "openssl"
describe Ohai::System, "plugin fips" do
diff --git a/spec/unit/plugins/windows/kernel_spec.rb b/spec/unit/plugins/windows/kernel_spec.rb
index 0628c7a3..42883395 100644
--- a/spec/unit/plugins/windows/kernel_spec.rb
+++ b/spec/unit/plugins/windows/kernel_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Windows kernel plugin", :windows_only do
let(:plugin) { get_plugin("kernel") }
diff --git a/spec/unit/plugins/windows/memory_spec.rb b/spec/unit/plugins/windows/memory_spec.rb
index 5e8d97c2..69d533d2 100644
--- a/spec/unit/plugins/windows/memory_spec.rb
+++ b/spec/unit/plugins/windows/memory_spec.rb
@@ -14,7 +14,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Windows memory plugin", :windows_only do
before do
diff --git a/spec/unit/plugins/windows/network_spec.rb b/spec/unit/plugins/windows/network_spec.rb
index dc474693..6ac6d47b 100644
--- a/spec/unit/plugins/windows/network_spec.rb
+++ b/spec/unit/plugins/windows/network_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
require "ipaddress"
describe Ohai::System, "Windows Network Plugin" do
diff --git a/spec/unit/plugins/windows/system_enclosure_spec.rb b/spec/unit/plugins/windows/system_enclosure_spec.rb
index e888538b..5a6bcb7f 100644
--- a/spec/unit/plugins/windows/system_enclosure_spec.rb
+++ b/spec/unit/plugins/windows/system_enclosure_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "System Enclosure", :windows_only do
before do
diff --git a/spec/unit/plugins/windows/uptime_spec.rb b/spec/unit/plugins/windows/uptime_spec.rb
index 91bca8b1..c9b3a49b 100644
--- a/spec/unit/plugins/windows/uptime_spec.rb
+++ b/spec/unit/plugins/windows/uptime_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Windows plugin uptime" do
diff --git a/spec/unit/plugins/windows/virtualization_spec.rb b/spec/unit/plugins/windows/virtualization_spec.rb
index 72c09e6b..17d2f12a 100644
--- a/spec/unit/plugins/windows/virtualization_spec.rb
+++ b/spec/unit/plugins/windows/virtualization_spec.rb
@@ -18,7 +18,7 @@
# limitations under the License.
#
-require_relative "../../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "Windows virtualization platform" do
let(:plugin) { get_plugin("windows/virtualization") }
diff --git a/spec/unit/plugins/zpools_spec.rb b/spec/unit/plugins/zpools_spec.rb
index 3dd53a34..d520ab33 100644
--- a/spec/unit/plugins/zpools_spec.rb
+++ b/spec/unit/plugins/zpools_spec.rb
@@ -13,7 +13,7 @@
# limitations under the License.
#
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
describe Ohai::System, "zpools plugin" do
let(:plugin) { get_plugin("zpools") }
diff --git a/spec/unit/provides_map_spec.rb b/spec/unit/provides_map_spec.rb
index 67056554..72a00d15 100644
--- a/spec/unit/provides_map_spec.rb
+++ b/spec/unit/provides_map_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License
#
-require_relative "../spec_helper.rb"
+require 'spec_helper'
describe Ohai::ProvidesMap do
diff --git a/spec/unit/runner_spec.rb b/spec/unit/runner_spec.rb
index 19bf8787..e280e2c5 100644
--- a/spec/unit/runner_spec.rb
+++ b/spec/unit/runner_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License
#
-require_relative "../spec_helper.rb"
+require 'spec_helper'
describe Ohai::Runner, "run_plugin" do
let(:safe_run) { true }
diff --git a/spec/unit/system_spec.rb b/spec/unit/system_spec.rb
index c74d1f90..0889a61b 100644
--- a/spec/unit/system_spec.rb
+++ b/spec/unit/system_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require_relative "../spec_helper.rb"
+require 'spec_helper'
require "ohai/mixin/os"
describe "Ohai::System" do
diff --git a/spec/unit/util/file_helper_spec.rb b/spec/unit/util/file_helper_spec.rb
index e71e4ca9..b09baf60 100644
--- a/spec/unit/util/file_helper_spec.rb
+++ b/spec/unit/util/file_helper_spec.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "ohai/util/file_helper"
class FileHelperMock
diff --git a/spec/unit/util/ip_helper_spec.rb b/spec/unit/util/ip_helper_spec.rb
index bf6a4f22..2a5fc36e 100644
--- a/spec/unit/util/ip_helper_spec.rb
+++ b/spec/unit/util/ip_helper_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
require "ipaddress"
-require_relative "../../spec_helper.rb"
+require 'spec_helper'
require "ohai/util/ip_helper"
class IpHelperMock