aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-28 15:57:29 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-28 15:57:29 +0000
commit70ac560e42644938392381ecd52efd7fb0260323 (patch)
treedbc0bc73d480bf3af99aef2f4be16afa183f4850 /railties/test
parent1d5c34c2c27370356e8cd1ef478111802b6a5af4 (diff)
downloadrails-70ac560e42644938392381ecd52efd7fb0260323.tar.gz
rails-70ac560e42644938392381ecd52efd7fb0260323.tar.bz2
rails-70ac560e42644938392381ecd52efd7fb0260323.zip
Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/fcgi_dispatcher_test.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/railties/test/fcgi_dispatcher_test.rb b/railties/test/fcgi_dispatcher_test.rb
index 7e9adbe9d3..607e15d912 100644
--- a/railties/test/fcgi_dispatcher_test.rb
+++ b/railties/test/fcgi_dispatcher_test.rb
@@ -12,7 +12,6 @@ require 'stringio'
# Stubs
require 'fcgi_handler'
require 'routes'
-require 'stubbed_breakpoint'
require 'stubbed_kernel'
class RailsFCGIHandler
@@ -35,9 +34,6 @@ class RailsFCGIHandler
@signal_handlers[which].call(which)
end
- def breakpoint
- end
-
alias_method :old_run_gc!, :run_gc!
def run_gc!
@gc_runs ||= 0
@@ -71,14 +67,6 @@ class RailsFCGIHandlerTest < Test::Unit::TestCase
@handler.process!
end
- def test_process_breakpoint
- @handler.stubs(:when_ready).returns(:breakpoint)
-
- @handler.expects(:close_connection)
- @handler.expects(:breakpoint!)
- @handler.process!
- end
-
def test_process_with_system_exit_exception
@handler.stubs(:process_request).raises(SystemExit)
@@ -93,13 +81,6 @@ class RailsFCGIHandlerTest < Test::Unit::TestCase
assert_equal :restart, @handler.when_ready
end
- def test_breakpoint_handler
- @handler.expects(:dispatcher_log).with(:info, "asked to breakpoint ASAP")
-
- @handler.send(:breakpoint_handler, nil)
- assert_equal :breakpoint, @handler.when_ready
- end
-
def test_install_signal_handler_should_log_on_bad_signal
@handler.stubs(:trap).raises(ArgumentError)
@@ -143,15 +124,6 @@ class RailsFCGIHandlerTest < Test::Unit::TestCase
@handler.send(:restore!)
end
- def test_breakpoint!
- @handler.expects(:require).with('breakpoint')
- Breakpoint.expects(:activate_drb)
- @handler.expects(:breakpoint)
- @handler.expects(:dispatcher_log).with(:info, "breakpointing")
- @handler.send(:breakpoint!)
- assert_nil @handler.when_ready
- end
-
def test_uninterrupted_processing
@handler.process!
assert_nil @handler.exit_code