From d3a182dd0238c964ff5191642d53fce3d2e64be9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 21 Jan 2011 08:53:55 +0000 Subject: pass along "to_io" calls to the body This optimization is used by Rainbows! to pass IO objects to the response body. --- test/test_clogger_to_path.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_clogger_to_path.rb b/test/test_clogger_to_path.rb index 00767dc..4cc9027 100644 --- a/test/test_clogger_to_path.rb +++ b/test/test_clogger_to_path.rb @@ -120,7 +120,8 @@ class TestCloggerToPath < Test::Unit::TestCase assert_instance_of(Clogger, body) check_body(body) - body.to_path + assert_equal tmp.path, body.to_path + assert_nothing_raised { body.to_io } assert_kind_of IO, tmp.instance_variable_get(:@to_io_called) assert logger.string.empty? assert ! tmp.closed? -- cgit v1.2.3-24-ge0c7