summaryrefslogtreecommitdiff
path: root/spec/unit/json_compat_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-02-18 22:35:17 -0800
committerTim Smith <tsmith84@gmail.com>2020-02-18 22:38:38 -0800
commit677b8361870f54978c935ed94fd413ccff230aea (patch)
tree9a6d9063fb8854a162d932bb8cd133d72d43e760 /spec/unit/json_compat_spec.rb
parentc9414338729decf217c8bfc37b1d405619c44331 (diff)
downloadchef-677b8361870f54978c935ed94fd413ccff230aea.tar.gz
Use require_relative within the specsrequire_relative
Simplify how we include the spec_helper via the new cookstyle rule. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/json_compat_spec.rb')
-rw-r--r--spec/unit/json_compat_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/json_compat_spec.rb b/spec/unit/json_compat_spec.rb
index 38c2c60b2e..c3c017dabb 100644
--- a/spec/unit/json_compat_spec.rb
+++ b/spec/unit/json_compat_spec.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require File.expand_path("../../spec_helper", __FILE__)
+require_relative "../spec_helper"
require "chef/json_compat"
describe Chef::JSONCompat do