summaryrefslogtreecommitdiff
path: root/bin/rspec
blob: 7d6c53cda4906dd3418617f42d7db06d7584f620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ruby
# frozen_string_literal: true

load File.expand_path("../with_rubygems", __FILE__) if ENV["RGV"]

require_relative "../spec/support/rubygems_ext"

begin
  Spec::Rubygems.gem_load("rspec-core", "rspec")
rescue Gem::LoadError => e
  warn "We couln't activate rspec (#{e.requirement}). Run `gem install rspec:'#{e.requirement}'`"
end