1
0
Fork 0
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:
Mike Pastore 2016-02-04 22:54:21 -06:00
parent 15e736de68
commit a9a5ef93b1
2 changed files with 10 additions and 0 deletions

View file

@ -30,5 +30,11 @@ module Puma
#
def close
end
# Always zero
#
def size
0
end
end
end

View file

@ -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