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 | 996468de001b21897bff901b7d1111fb85757182 (patch) | |
tree | a30c9853bf19f4cf6158941dd16df4695316d619 /spec/ruby | |
parent | a5a8ba7d571815e5adafb929ae0d97a0ea6e93dc (diff) |
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/ruby')
-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 |