mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
NullIO#closed should return false (#2883)
This commit is contained in:
parent
6543f0959b
commit
25740ea6c4
2 changed files with 4 additions and 3 deletions
|
@ -53,8 +53,9 @@ module Puma
|
|||
self
|
||||
end
|
||||
|
||||
# This is used as singleton class, so can't have state.
|
||||
def closed?
|
||||
true
|
||||
false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -65,7 +65,7 @@ class TestNullIO < Minitest::Test
|
|||
assert_equal nio, nio.flush
|
||||
end
|
||||
|
||||
def test_closed_returns_true
|
||||
assert_equal true, nio.closed?
|
||||
def test_closed_returns_false
|
||||
assert_equal false, nio.closed?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue