summaryrefslogtreecommitdiff
path: root/bin/rspec
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rspec')
-rwxr-xr-xbin/rspec5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/rspec b/bin/rspec
index 20060ebd79c..6e6709219af 100755
--- a/bin/rspec
+++ b/bin/rspec
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
begin
- load File.expand_path("../spring", __FILE__)
-rescue LoadError
+ load File.expand_path('../spring', __FILE__)
+rescue LoadError => e
+ raise unless e.message.include?('spring')
end
require 'bundler/setup'
load Gem.bin_path('rspec-core', 'rspec')