mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Add NullIO#size and test
This commit is contained in:
parent
15e736de68
commit
a9a5ef93b1
2 changed files with 10 additions and 0 deletions
|
@ -30,5 +30,11 @@ module Puma
|
|||
#
|
||||
def close
|
||||
end
|
||||
|
||||
# Always zero
|
||||
#
|
||||
def size
|
||||
0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -28,4 +28,8 @@ class TestNullIO < Test::Unit::TestCase
|
|||
assert_nil nio.read(1,buf)
|
||||
assert_equal "", buf
|
||||
end
|
||||
|
||||
def test_size
|
||||
assert_equal 0, nio.size
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue