aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 01:48:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 01:48:45 +0000
commit967c381a89182e8cf6850a35028e17d9004a366b (patch)
treea30c9853bf19f4cf6158941dd16df4695316d619 /spec
parent346bbb7249fa05d2daf490d679ccb975823ff80c (diff)
downloadruby-967c381a89182e8cf6850a35028e17d9004a366b.tar.gz
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
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/library/pathname/empty_spec.rb2
1 files changed, 1 insertions, 1 deletions
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