1
0
Fork 0
mirror of https://github.com/mperham/connection_pool synced 2023-03-27 23:22:21 -04:00

Test TimedStack#empty? with a sized stack

This commit is contained in:
Eric Hodel 2014-02-17 14:45:57 -08:00
parent c93190bb80
commit 42ac8d5608

View file

@ -15,6 +15,12 @@ class TestConnectionPoolTimedStack < Minitest::Test
refute_empty @stack
end
def test_empty_eh_full
stack = ConnectionPool::TimedStack.new(1) { Object.new }
refute_empty stack
end
def test_length
assert_equal 0, @stack.length