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.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/bundler/support/bundle.rb b/spec/bundler/support/bundle.rb
index bb21526d35..5d6d658040 100644
--- a/spec/bundler/support/bundle.rb
+++ b/spec/bundler/support/bundle.rb
@@ -1,8 +1,5 @@
# 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)
+require_relative "activate"
+
load File.expand_path("bundle", Spec::Path.bindir)