about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-21 08:53:55 +0000
committerEric Wong <normalperson@yhbt.net>2011-01-21 08:57:01 +0000
commitd3a182dd0238c964ff5191642d53fce3d2e64be9 (patch)
tree7849641fd6ecdf22f15a82ee1c7653214999ea44 /test
parent0abc76611fe3438dd5b152257f9ba9028c536ed3 (diff)
downloadclogger-d3a182dd0238c964ff5191642d53fce3d2e64be9.tar.gz
This optimization is used by Rainbows! to pass IO objects
to the response body.
Diffstat (limited to 'test')
-rw-r--r--test/test_clogger_to_path.rb3
1 files changed, 2 insertions, 1 deletions
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?