diff options
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 6e4f9d9ac3..8853311594 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -270,13 +270,7 @@ module ActionController #:nodoc: require 'stringio' sio = StringIO.new - - begin - $stdout = sio - body.call - ensure - $stdout = STDOUT - end + body.call(self, sio) sio.rewind sio.read |