about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-14 13:24:58 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-14 13:24:58 -0800
commit63521b4c70a1aff89049abf2ba224114e97f62ac (patch)
tree81e86b313498342ceaf7ba98fa179c1cb5142292
parentb48017f818e13f8c7ddb555f8fe5fa895521af7a (diff)
downloadclogger-63521b4c70a1aff89049abf2ba224114e97f62ac.tar.gz
We'll be getting rid of an unnecessary wrapper class
-rw-r--r--test/test_clogger_to_path.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_clogger_to_path.rb b/test/test_clogger_to_path.rb
index 4da3103..b25ec46 100644
--- a/test/test_clogger_to_path.rb
+++ b/test/test_clogger_to_path.rb
@@ -50,6 +50,7 @@ class TestCloggerToPath < Test::Unit::TestCase
 
     status, headers, body = app.call(@req)
     assert_instance_of(Clogger::ToPath, body)
+    assert body.respond_to?(:to_path)
     assert logger.string.empty?
     assert_equal tmp.path, body.to_path
     body.close
@@ -76,6 +77,7 @@ class TestCloggerToPath < Test::Unit::TestCase
 
     status, headers, body = app.call(@req)
     assert_instance_of(Clogger::ToPath, body)
+    assert body.respond_to?(:to_path)
     assert logger.string.empty?
     assert_equal "/dev/fd/#{tmp.fileno}", body.to_path
     body.close
@@ -108,6 +110,7 @@ class TestCloggerToPath < Test::Unit::TestCase
 
     status, headers, body = app.call(@req)
     assert_instance_of(Clogger::ToPath, body)
+    assert body.respond_to?(:to_path)
     body.to_path
     assert_kind_of IO, tmp.instance_variable_get(:@to_io_called)
     assert logger.string.empty?