about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-05 00:49:06 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-05 00:49:06 -0800
commitd3c20360f9607a9e04f7d28ce0a796437f733e5f (patch)
tree19783fd6009bef38ae57e8aa5b31360505ba25cd /test
parentc59dad8b8cca7087860e64d161250ab09edb14e9 (diff)
downloadunicorn-d3c20360f9607a9e04f7d28ce0a796437f733e5f.tar.gz
Subclass off the core File class so we don't have to
worry about #size being defined.  This will mainly
be useful to Rainbows! but allows us to simplify
our TeeInput implementation a little, too.
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_tee_input.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/test_tee_input.rb b/test/unit/test_tee_input.rb
index 2bd6541..403f698 100644
--- a/test/unit/test_tee_input.rb
+++ b/test/unit/test_tee_input.rb
@@ -127,7 +127,7 @@ class TestTeeInput < Test::Unit::TestCase
     assert ! @parser.body_eof?
     assert_kind_of File, ti.instance_eval { @tmp }
     assert_equal 0, ti.instance_eval { @tmp.pos }
-    assert_equal 1, ti.instance_eval { tmp_size }
+    assert_equal 1, ti.instance_eval { @tmp.size }
     assert_equal Unicorn::Const::MAX_BODY + 1, ti.size
     nr = Unicorn::Const::MAX_BODY / 4
     pid = fork {