Browse files

exit with a non-zero status if rspec/autorun is not found

  • Loading branch information...
1 parent a04fd63 commit 10bfa679735c50fe06ac45c6a30eec2bd79269c1 @dchelimsky dchelimsky committed Nov 6, 2010
Showing with 12 additions and 13 deletions.
  1. +12 −13 bin/rspec
View
25 bin/rspec
@@ -4,23 +4,22 @@ begin
require 'rspec/autorun'
rescue LoadError
$stderr.puts <<-EOS
-Could not find 'rspec/autorun'
+#{'*'*50}
+ Could not find 'rspec/autorun'
-This may happen if you're using rubygems as your package manager, but it is not
-being required through some mechanism before execing this file.
+ This may happen if you're using rubygems as your package manager, but it is not
+ being required through some mechanism before executing the rspec command.
-You may need to do one of the following in your shell:
+ You may need to do one of the following in your shell:
- # for bash/zsh
- export RUBYOPT=rubygems
+ # for bash/zsh
+ export RUBYOPT=rubygems
- # for csh, etc.
- set RUBYOPT=rubygems
-
-
-For background, please see http://gist.github.com/54177
+ # for csh, etc.
+ set RUBYOPT=rubygems
+ For background, please see http://gist.github.com/54177.
+#{'*'*50}
EOS
-
- raise
+ exit(1)
end

0 comments on commit 10bfa67

Please sign in to comment.