spec/spec_helper.rb in jazzy-0.13.7 vs spec/spec_helper.rb in jazzy-0.14.0
- old
+ new
@@ -1,12 +1,14 @@
+# frozen_string_literal: true
+
require 'rubygems'
require 'bundler/setup'
require 'bacon'
require 'mocha-on-bacon'
require 'pretty_bacon'
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 'jazzy'