1
0
Fork 0
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:
Vlad Bokov 2022-05-20 01:08:30 +03:00 committed by GitHub
parent 97c7457c89
commit b0d2220c8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -52,5 +52,9 @@ module Puma
def flush
self
end
def closed?
true
end
end
end

View file

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