aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-01-09 18:50:06 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-01-09 18:50:06 +0000
commit4ad3721a17c721133e3a5c0e6894625a91ccee1e (patch)
tree870712928723bdf149e911423ffef89eba09de3e /railties
parent72bd4ff3e6a24e8d59f8a1a5310fb79924d85bc9 (diff)
downloadrails-4ad3721a17c721133e3a5c0e6894625a91ccee1e.tar.gz
rails-4ad3721a17c721133e3a5c0e6894625a91ccee1e.tar.bz2
rails-4ad3721a17c721133e3a5c0e6894625a91ccee1e.zip
Re-enable the debugger in testing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/test_help.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/test_help.rb b/railties/lib/test_help.rb
index 3b91438c08..22ce9ab609 100644
--- a/railties/lib/test_help.rb
+++ b/railties/lib/test_help.rb
@@ -18,3 +18,11 @@ ActionController::IntegrationTest.fixture_path = Test::Unit::TestCase.fixture_pa
def create_fixtures(*table_names)
Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
end
+
+begin
+ require_library_or_gem 'ruby-debug'
+ Debugger.start
+ Debugger.settings[:autoeval] = true if Debugger.respond_to?(:settings)
+rescue LoadError
+ # ruby-debug wasn't available so neither can the debugging be
+end \ No newline at end of file