test/helper.rb in nanoc-4.8.0 vs test/helper.rb in nanoc-4.8.1

- old
+ new

@@ -25,11 +25,11 @@ require 'nanoc/cli' Nanoc::CLI.setup module Nanoc::TestHelpers - LIB_DIR = File.expand_path(File.dirname(__FILE__) + '/../lib') + LIB_DIR = File.expand_path(__dir__ + '/../lib') def disable_nokogiri? ENV.key?('DISABLE_NOKOGIRI') end @@ -269,10 +269,10 @@ def skip_unless_symlinks_supported skip 'Symlinks are not supported by Ruby on Windows' unless symlinks_supported? end def root_dir - File.absolute_path(File.dirname(__FILE__) + '/..') + File.absolute_path(__dir__ + '/..') end end class Nanoc::TestCase < Minitest::Test include Nanoc::TestHelpers