diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-19 11:54:12 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-19 11:54:12 +0200 |
commit | a66c91723565d37969de4cb46baa50fb8865b02a (patch) | |
tree | 7eb51d421970713ec0a0d85bbd4474c8bd75f19b /actionpack/test/dispatch | |
parent | 6380f1a9f45e68f38480c0805cac62eb6708f72e (diff) | |
download | rails-a66c91723565d37969de4cb46baa50fb8865b02a.tar.gz rails-a66c91723565d37969de4cb46baa50fb8865b02a.tar.bz2 rails-a66c91723565d37969de4cb46baa50fb8865b02a.zip |
Do not inherit from Rack::Response, remove a shit-ton of unused code.
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/response_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/actionpack/test/dispatch/response_test.rb b/actionpack/test/dispatch/response_test.rb index 6f38714b2e..5abbaf74fe 100644 --- a/actionpack/test/dispatch/response_test.rb +++ b/actionpack/test/dispatch/response_test.rb @@ -33,22 +33,6 @@ class ResponseTest < ActiveSupport::TestCase }, headers) end - test "streaming block" do - @response.body = Proc.new do |response, output| - 5.times { |n| output.write(n) } - end - - status, headers, body = @response.to_a - assert_equal 200, status - assert_equal({ - "Content-Type" => "text/html; charset=utf-8" - }, headers) - - parts = [] - body.each { |part| parts << part.to_s } - assert_equal ["0", "1", "2", "3", "4"], parts - end - test "content type" do [204, 304].each do |c| @response.status = c.to_s |