Permalink
Browse files

Don't croak if ruby-debug isn't installed.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6876 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 3f336ad commit 0aed1d629e82de743416a60461d52dace24bd4c4 @jeremy jeremy committed May 28, 2007
Showing with 5 additions and 1 deletion.
  1. +5 −1 actionpack/test/abstract_unit.rb
@@ -9,7 +9,11 @@
require 'action_controller/cgi_ext'
require 'action_controller/test_process'
-require 'ruby-debug'
+begin
+ require 'ruby-debug'
+rescue LoadError
+ # Debugging disabled. `gem install ruby-debug` to enable.
+end
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true

0 comments on commit 0aed1d6

Please sign in to comment.