summaryrefslogtreecommitdiff
path: root/bin/rspec
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-04-22 12:36:47 -0400
committerRobert Speicher <rspeicher@gmail.com>2016-04-22 16:00:56 -0400
commitfdc8b05ab181b809fd7d0fb3b8e8d73fac534fd0 (patch)
treef88b393c3ea7dd828218e9df9d6e1b8c1144643a /bin/rspec
parent80893cad672361e62c0c05c2cf9262209bc54fd2 (diff)
downloadgitlab-ce-fdc8b05ab181b809fd7d0fb3b8e8d73fac534fd0.tar.gz
Re-generate Spring binstubs for updated version of Spring
Prevents output like this: Array values in the parameter are deprecated. Please use a String or nil. An Array was passed in from bin/rspec:3:in `load'
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')