Skip to content

Commit

Permalink
simplify #project_dir
Browse files Browse the repository at this point in the history
Per @ekohl
  • Loading branch information
jhoblitt committed Jan 28, 2022
1 parent 8f452d3 commit e2eae81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e2eae81

Please sign in to comment.