diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-04 01:48:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-04 01:48:45 +0000 |
commit | 967c381a89182e8cf6850a35028e17d9004a366b (patch) | |
tree | a30c9853bf19f4cf6158941dd16df4695316d619 /spec | |
parent | 346bbb7249fa05d2daf490d679ccb975823ff80c (diff) | |
download | ruby-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.rb | 2 |
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 |