Skip to content

Commit 27bc1b0

Browse files
committed
bundle exe/rspec so we know where it is
1 parent c40c248 commit 27bc1b0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

exe/rspec

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

0 commit comments

Comments
 (0)