spec/spec_helper.rb in danger-changelog-0.3.0 vs spec/spec_helper.rb in danger-changelog-0.4.0
- old
+ new
@@ -1,6 +1,6 @@
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'