summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-07-13 12:48:21 -0700
committerPete Higgins <pete@peterhiggins.org>2020-07-13 13:35:19 -0700
commitea09c756ef643dda36932c9578080bd867e72b4c (patch)
tree98afc976824a6476cc63b6227730106e4c098ed5 /spec/unit
parent04eac6a86e51d71cdbfbe163ebb70a887c1c9ddb (diff)
downloadchef-ea09c756ef643dda36932c9578080bd867e72b4c.tar.gz
The spec/ directory is in the path.fix-spec_helper-requires
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/data_collector_spec.rb2
-rw-r--r--spec/unit/json_compat_spec.rb2
-rw-r--r--spec/unit/knife/cookbook_upload_spec.rb2
-rw-r--r--spec/unit/provider/ifconfig_spec.rb1
-rw-r--r--spec/unit/provider/package/smartos_spec.rb2
-rw-r--r--spec/unit/provider/service/redhat_spec.rb2
-rw-r--r--spec/unit/resource_reporter_spec.rb2
-rw-r--r--spec/unit/run_lock_spec.rb2
-rw-r--r--spec/unit/scan_access_control_spec.rb2
9 files changed, 8 insertions, 9 deletions
diff --git a/spec/unit/data_collector_spec.rb b/spec/unit/data_collector_spec.rb
index 1e527135dc..79d5ed7d5f 100644
--- a/spec/unit/data_collector_spec.rb
+++ b/spec/unit/data_collector_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require "spec_helper"
require "chef/data_collector"
require "socket"
diff --git a/spec/unit/json_compat_spec.rb b/spec/unit/json_compat_spec.rb
index 896775f04d..9a3ce2121a 100644
--- a/spec/unit/json_compat_spec.rb
+++ b/spec/unit/json_compat_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require "spec_helper"
require "chef/json_compat"
describe Chef::JSONCompat do
diff --git a/spec/unit/knife/cookbook_upload_spec.rb b/spec/unit/knife/cookbook_upload_spec.rb
index bc13ce834c..c667742187 100644
--- a/spec/unit/knife/cookbook_upload_spec.rb
+++ b/spec/unit/knife/cookbook_upload_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "spec_helper"))
+require "spec_helper"
require "chef/cookbook_uploader"
require "timeout"
diff --git a/spec/unit/provider/ifconfig_spec.rb b/spec/unit/provider/ifconfig_spec.rb
index 88fa5883f2..668a3ca9d9 100644
--- a/spec/unit/provider/ifconfig_spec.rb
+++ b/spec/unit/provider/ifconfig_spec.rb
@@ -16,7 +16,6 @@
# limitations under the License.
#
-# require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "spec_helper"))
require "spec_helper"
require "chef/exceptions"
diff --git a/spec/unit/provider/package/smartos_spec.rb b/spec/unit/provider/package/smartos_spec.rb
index 91ccb87211..5d815a579e 100644
--- a/spec/unit/provider/package/smartos_spec.rb
+++ b/spec/unit/provider/package/smartos_spec.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "spec_helper"))
+require "spec_helper"
require "ostruct"
describe Chef::Provider::Package::SmartOS, "load_current_resource" do
diff --git a/spec/unit/provider/service/redhat_spec.rb b/spec/unit/provider/service/redhat_spec.rb
index b965183d14..9795abf771 100644
--- a/spec/unit/provider/service/redhat_spec.rb
+++ b/spec/unit/provider/service/redhat_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "spec_helper"))
+require "spec_helper"
require "ostruct"
shared_examples_for "define_resource_requirements_common" do
diff --git a/spec/unit/resource_reporter_spec.rb b/spec/unit/resource_reporter_spec.rb
index cac384f1c4..69d5b28e7e 100644
--- a/spec/unit/resource_reporter_spec.rb
+++ b/spec/unit/resource_reporter_spec.rb
@@ -19,7 +19,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require "spec_helper"
require "chef/resource_reporter"
require "socket"
diff --git a/spec/unit/run_lock_spec.rb b/spec/unit/run_lock_spec.rb
index c4fcb8ad6f..17e6fb6521 100644
--- a/spec/unit/run_lock_spec.rb
+++ b/spec/unit/run_lock_spec.rb
@@ -15,7 +15,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-require_relative "../spec_helper"
+require "spec_helper"
require "chef/client"
describe Chef::RunLock do
diff --git a/spec/unit/scan_access_control_spec.rb b/spec/unit/scan_access_control_spec.rb
index ba09b990f5..5406201891 100644
--- a/spec/unit/scan_access_control_spec.rb
+++ b/spec/unit/scan_access_control_spec.rb
@@ -15,7 +15,7 @@
# limitations under the License.
#
-require_relative "../spec_helper"
+require "spec_helper"
require "chef/scan_access_control"
describe Chef::ScanAccessControl do