aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-05-28 00:00:07 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-05-28 00:00:07 +0000
commit0aed1d629e82de743416a60461d52dace24bd4c4 (patch)
treec78175edff975effe7b302f963590e700638eb49
parent3f336ad5cc9fc6b9ca9947719fce3b9e8ad0dbb6 (diff)
downloadrails-0aed1d629e82de743416a60461d52dace24bd4c4.tar.gz
rails-0aed1d629e82de743416a60461d52dace24bd4c4.tar.bz2
rails-0aed1d629e82de743416a60461d52dace24bd4c4.zip
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
-rw-r--r--actionpack/test/abstract_unit.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb
index 2d7b5f2af6..e47570823f 100644
--- a/actionpack/test/abstract_unit.rb
+++ b/actionpack/test/abstract_unit.rb
@@ -9,7 +9,11 @@ require 'action_controller'
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