From 70ac560e42644938392381ecd52efd7fb0260323 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 28 Apr 2007 15:57:29 +0000 Subject: 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 --- railties/test/fcgi_dispatcher_test.rb | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'railties/test') 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 -- cgit v1.2.3