mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Expose Puma::NullIO#closed? (#2880)
This commit is contained in:
parent
97c7457c89
commit
b0d2220c8c
2 changed files with 8 additions and 0 deletions
|
@ -52,5 +52,9 @@ module Puma
|
|||
def flush
|
||||
self
|
||||
end
|
||||
|
||||
def closed?
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -64,4 +64,8 @@ class TestNullIO < Minitest::Test
|
|||
def test_flush_returns_self
|
||||
assert_equal nio, nio.flush
|
||||
end
|
||||
|
||||
def test_closed_returns_true
|
||||
assert_equal true, nio.closed?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue