From 996468de001b21897bff901b7d1111fb85757182 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 4 Nov 2017 01:48:45 +0000 Subject: [PATCH] load from relative path to __FILE__ * spec/ruby/library/pathname/empty_spec.rb: load spec_helper from relative path to `__FILE__` same as other spec files, instead of `__dir__` in which symlinks are resolved, to get rid of constant redefinition warning when `srcdir` contains symlinks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- spec/ruby/library/pathname/empty_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ruby/library/pathname/empty_spec.rb b/spec/ruby/library/pathname/empty_spec.rb index ffe00c32e4..e573021491 100644 --- a/spec/ruby/library/pathname/empty_spec.rb +++ b/spec/ruby/library/pathname/empty_spec.rb @@ -1,4 +1,4 @@ -require File.expand_path('../../spec_helper', __dir__) +require File.expand_path('../../../spec_helper', __FILE__) require 'pathname' ruby_version_is '2.4' do