spec/spec_helper.rb in danger-xcode_summary-0.5.0 vs spec/spec_helper.rb in danger-xcode_summary-0.5.1
- old
+ new
@@ -1,6 +1,8 @@
+# frozen_string_literal: true
+
require 'pathname'
-ROOT = Pathname.new(File.expand_path('../../', __FILE__))
+ROOT = Pathname.new(File.expand_path('..', __dir__))
$LOAD_PATH.unshift((ROOT + 'lib').to_s)
$LOAD_PATH.unshift((ROOT + 'spec').to_s)
require 'bundler/setup'
require 'pry'