summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/netbsd
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 /spec/unit/plugins/netbsd
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>
Diffstat (limited to 'spec/unit/plugins/netbsd')
-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
3 files changed, 3 insertions, 3 deletions
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