aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-24 23:38:59 +0200
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-24 23:38:59 +0200
commitd182b6ee9c99901553e6e948f91102d03bb041b0 (patch)
tree136116fbbd3205946cbacf57273501c3675458aa /actionpack/test/dispatch
parent90f59b24dc994b0edca22dbed30846738ddcc41d (diff)
downloadrails-d182b6ee9c99901553e6e948f91102d03bb041b0.tar.gz
rails-d182b6ee9c99901553e6e948f91102d03bb041b0.tar.bz2
rails-d182b6ee9c99901553e6e948f91102d03bb041b0.zip
removed deprecated methods, and related tests, from ActionPack
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r--actionpack/test/dispatch/response_body_is_proc_test.rb37
1 files changed, 0 insertions, 37 deletions
diff --git a/actionpack/test/dispatch/response_body_is_proc_test.rb b/actionpack/test/dispatch/response_body_is_proc_test.rb
deleted file mode 100644
index fd94832624..0000000000
--- a/actionpack/test/dispatch/response_body_is_proc_test.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-require 'abstract_unit'
-
-class ResponseBodyIsProcTest < ActionDispatch::IntegrationTest
- class TestController < ActionController::Base
- def test
- self.response_body = proc { |response, output|
- output.write 'Hello'
- }
- end
- end
-
- def test_simple_get
- with_test_route_set do
- assert_deprecated do
- get '/test'
- end
- assert_response :success
- assert_equal 'Hello', response.body
- end
- end
-
- private
-
- def with_test_route_set(options = {})
- with_routing do |set|
- set.draw do
- match ':action', :to => ::ResponseBodyIsProcTest::TestController
- end
-
- @app = self.class.build_app(set) do |middleware|
- middleware.delete "ActionDispatch::ShowExceptions"
- end
-
- yield
- end
- end
-end