diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-05 00:49:06 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-05 00:49:06 -0800 |
commit | d3c20360f9607a9e04f7d28ce0a796437f733e5f (patch) | |
tree | 19783fd6009bef38ae57e8aa5b31360505ba25cd /test | |
parent | c59dad8b8cca7087860e64d161250ab09edb14e9 (diff) | |
download | unicorn-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.rb | 2 |
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 { |