Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit cc34f02

Browse files
committedNov 13, 2013
Drop the custom load error message in exe/rspec.
There's little need for it nowadays, and it can hide the true error.
1 parent 74338b2 commit cc34f02

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed
 

‎exe/rspec

+2-24
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
11
#!/usr/bin/env ruby
22

3-
begin
4-
require 'rspec/core'
5-
RSpec::Core::Runner.invoke
6-
rescue LoadError
7-
$stderr.puts <<-EOS
8-
#{'*'*50}
9-
Could not find 'rspec/core'
10-
11-
This may happen if you're using rubygems as your package manager, but it is not
12-
being required through some mechanism before executing the rspec command.
13-
14-
You may need to do one of the following in your shell:
15-
16-
# for bash/zsh
17-
export RUBYOPT=rubygems
18-
19-
# for csh, etc.
20-
set RUBYOPT=rubygems
21-
22-
For background, please see http://gist.github.com/54177.
23-
#{'*'*50}
24-
EOS
25-
exit(1)
26-
end
3+
require 'rspec/core'
4+
RSpec::Core::Runner.invoke

0 commit comments

Comments
 (0)
This repository has been archived.