diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-05-21 21:48:26 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-05-21 21:48:42 +0200 |
commit | 386ff66e5ed4fbe1e060610d4226a4eb22dca766 (patch) | |
tree | 4ada983959c4072a2f37c83a3317c4291c36171b /actionpack/test/controller | |
parent | 59b32f2883b58a1e7bf2c246801a605b673e3fb6 (diff) | |
download | rails-386ff66e5ed4fbe1e060610d4226a4eb22dca766.tar.gz rails-386ff66e5ed4fbe1e060610d4226a4eb22dca766.tar.bz2 rails-386ff66e5ed4fbe1e060610d4226a4eb22dca766.zip |
Add Streaming to new base
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/send_file_test.rb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/actionpack/test/controller/send_file_test.rb b/actionpack/test/controller/send_file_test.rb index 6007ebef7a..3a99774ae0 100644 --- a/actionpack/test/controller/send_file_test.rb +++ b/actionpack/test/controller/send_file_test.rb @@ -40,17 +40,19 @@ class SendFileTest < ActionController::TestCase assert_equal file_data, response.body end - def test_file_stream - response = nil - assert_nothing_raised { response = process('file') } - assert_not_nil response - assert_kind_of Array, response.body_parts - - require 'stringio' - output = StringIO.new - output.binmode - assert_nothing_raised { response.body_parts.each { |part| output << part.to_s } } - assert_equal file_data, output.string + for_tag(:old_base) do + def test_file_stream + response = nil + assert_nothing_raised { response = process('file') } + assert_not_nil response + assert_kind_of Array, response.body_parts + + require 'stringio' + output = StringIO.new + output.binmode + assert_nothing_raised { response.body_parts.each { |part| output << part.to_s } } + assert_equal file_data, output.string + end end def test_file_url_based_filename |