spec/spec_helper.rb in danger-ios_logs-0.1.1 vs spec/spec_helper.rb in danger-ios_logs-0.1.2
- old
+ new
@@ -1,6 +1,9 @@
+# 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'