Index: actionpack/test/controller/send_file_test.rb
===================================================================
--- actionpack/test/controller/send_file_test.rb	(revision 4616)
+++ actionpack/test/controller/send_file_test.rb	(working copy)
@@ -54,6 +54,10 @@
     assert_equal file_data, output.string
   end
 
+  def test_binary_content
+    assert_equal file_data, process('file').binary_content
+  end
+
   def test_data
     response = nil
     assert_nothing_raised { response = process('data') }
Index: actionpack/lib/action_controller/test_process.rb
===================================================================
--- actionpack/lib/action_controller/test_process.rb	(revision 4616)
+++ actionpack/lib/action_controller/test_process.rb	(working copy)
@@ -261,7 +261,7 @@
 
       begin 
         $stdout = sio
-        body.call
+        body.call(self, sio)
       ensure
         $stdout = STDOUT
       end
