From 08ab2fa65ffd5f1baf2cef5ca6ddd945cf6b246e Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 8 Sep 2020 21:48:57 -0700 Subject: Use __dir__ instead of __FILE__ Makes things a bit easier to read Signed-off-by: Tim Smith --- spec/spec_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index fb60fe7..f1d60d2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,5 @@ -$:.unshift File.expand_path("../../lib", __FILE__) -$:.unshift File.expand_path("../..", __FILE__) +$:.unshift File.expand_path("../lib", __dir__) +$:.unshift File.expand_path("..", __dir__) require "mixlib/shellout" require "tmpdir" -- cgit v1.2.1