diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-09-05 19:56:03 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-09-06 09:16:55 +0900 |
commit | 4d7d012575df55efa87abb2687df051f70782267 (patch) | |
tree | 662d6841f54f5af54891941a282e520ad266fb7f /spec/support/artifice/endpoint.rb | |
parent | d5592453ba6c60809fe827d329f430b9eab4634a (diff) | |
download | bundler-4d7d012575df55efa87abb2687df051f70782267.tar.gz |
To use helper methods for relative path references.
Ruby core needs to change `Spec::Path.root` and gemspec, bin, spec
directories structure.
* Added Spec::Path.bin, gemspec, spec methods.
* Replace Spec::Path methods from relative references like "../../..".
Diffstat (limited to 'spec/support/artifice/endpoint.rb')
-rw-r--r-- | spec/support/artifice/endpoint.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/artifice/endpoint.rb b/spec/support/artifice/endpoint.rb index 33e2a9b411..21c44ba6e0 100644 --- a/spec/support/artifice/endpoint.rb +++ b/spec/support/artifice/endpoint.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true require File.expand_path("../../path.rb", __FILE__) -require File.expand_path("../../../../lib/bundler/deprecate", __FILE__) +require File.expand_path("#{Spec::Path.root}/lib/bundler/deprecate", __FILE__) include Spec::Path $LOAD_PATH.unshift(*Dir[Spec::Path.base_system_gems.join("gems/{artifice,rack,tilt,sinatra}-*/lib")].map(&:to_s)) |