From e2eae81624486429eddf517801429b325646ca71 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Fri, 28 Jan 2022 09:59:14 -0700 Subject: [PATCH] simplify #project_dir Per @ekohl --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 42b77242..3ad29800 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,5 +21,5 @@ RSpec::Matchers.define_negated_matcher :not_be_empty, :be_empty def project_dir - File.dirname File.dirname(File.expand_path(__FILE__)) + File.dirname(__dir__) end