From ac655ffeda6433ce16f0013801c19ec361ce20a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 23 Jul 2019 18:44:21 +0200 Subject: 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. --- spec/support/artifice/endpoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support/artifice') diff --git a/spec/support/artifice/endpoint.rb b/spec/support/artifice/endpoint.rb index 0176059e87..966681f8d8 100644 --- a/spec/support/artifice/endpoint.rb +++ b/spec/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) -- cgit v1.2.1