summaryrefslogtreecommitdiff
path: root/spec/bundler/support/bundle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/bundler/support/bundle.rb')
-rw-r--r--spec/bundler/support/bundle.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/bundler/support/bundle.rb b/spec/bundler/support/bundle.rb
index bb21526d35..aa7b121706 100644
--- a/spec/bundler/support/bundle.rb
+++ b/spec/bundler/support/bundle.rb
@@ -1,8 +1,7 @@
# frozen_string_literal: true
-require "rubygems"
require_relative "path"
-bundler_gemspec = Spec::Path.loaded_gemspec
-bundler_gemspec.instance_variable_set(:@full_gem_path, Spec::Path.source_root)
-bundler_gemspec.activate if bundler_gemspec.respond_to?(:activate)
-load File.expand_path("bundle", Spec::Path.bindir)
+
+warn "#{__FILE__} is deprecated. Please use #{Spec::Path.dev_binstub} instead"
+
+load Spec::Path.dev_binstub