summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-09-08 23:35:38 -0700
committerTim Smith <tsmith84@gmail.com>2020-09-08 23:35:38 -0700
commit607d247c9a4bcef57a905e82454d5cd10bea5e7e (patch)
tree0854bee0f5dbe75caad74f67b1778d602e9bfad9 /spec/spec_helper.rb
parent0fd5b792f8f7eaf38bb5308ff015e59513242c61 (diff)
downloadmixlib-authentication-chefstyle.tar.gz
Replace __FILE__ with __dir__ and use safe operatorschefstyle
A few new chefstyle rules to improve readability here. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index f10ee93..015c298 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -17,6 +17,6 @@
# limitations under the License.
#
-$:.unshift File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")) # lib in mixlib-authentication
+$:.unshift File.expand_path(File.join(__dir__, "..", "lib")) # lib in mixlib-authentication
require "rubygems" unless defined?(Gem)