summaryrefslogtreecommitdiff
path: root/bin/rspec
blob: 39109d66f26c086f3e075f3501d60e975be0be7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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__))
bundler_spec.dependencies.each do |dep|
  gem dep.name, dep.requirement
end

Gem.finish_resolve if Gem.respond_to?(:finish_resolve)

load Gem.bin_path("rspec-core", "rspec")