aboutsummaryrefslogtreecommitdiffstats
path: root/spec/bundler/support/artifice
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-23 18:44:21 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-18 13:45:35 +0900
commit4756c5f7e79642484d01a7dbca17357eb8b08ef1 (patch)
treefb0dcb131aac08b1a1545db3f51853c16ff71b88 /spec/bundler/support/artifice
parent5a69a23afcc39a87bf808f484fa476978a9a0b4d (diff)
downloadruby-4756c5f7e79642484d01a7dbca17357eb8b08ef1.tar.gz
[bundler/bundler] Remove unnecessary rubygems monkeypatch
Instead, make sure we always load the local copy of bundler during specs, and never end up using the default copy. https://github.com/bundler/bundler/commit/ac655ffeda
Diffstat (limited to 'spec/bundler/support/artifice')
-rw-r--r--spec/bundler/support/artifice/endpoint.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/support/artifice/endpoint.rb b/spec/bundler/support/artifice/endpoint.rb
index 0176059e87..966681f8d8 100644
--- a/spec/bundler/support/artifice/endpoint.rb
+++ b/spec/bundler/support/artifice/endpoint.rb
@@ -44,7 +44,7 @@ class Endpoint < Sinatra::Base
def dependencies_for(gem_names, gem_repo = GEM_REPO)
return [] if gem_names.nil? || gem_names.empty?
- require "bundler"
+ require "#{Spec::Path.lib}/bundler"
Bundler::Deprecate.skip_during do
all_specs = %w[specs.4.8 prerelease_specs.4.8].map do |filename|
Marshal.load(File.open(gem_repo.join(filename)).read)