summaryrefslogtreecommitdiff
path: root/bin/rspec
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rspec')
-rwxr-xr-xbin/rspec6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rspec b/bin/rspec
index 404da15056..388fe57382 100755
--- a/bin/rspec
+++ b/bin/rspec
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
+load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]
+
require "rubygems"
bundler_spec = Gem::Specification.load(File.expand_path("../../bundler.gemspec", __FILE__))
@@ -8,8 +10,6 @@ bundler_spec.dependencies.each do |dep|
gem dep.name, dep.requirement.to_s
end
-Gem::Specification.unresolved_deps.each do |_name, dep|
- gem dep.name, *dep.requirement
-end
+Gem.finish_resolve if Gem.respond_to?(:finish_resolve)
load Gem.bin_path("rspec-core", "rspec")