mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
Test Wrapper#respond_to?
This commit is contained in:
parent
9e3944b718
commit
a7a6fe98c5
1 changed files with 9 additions and 0 deletions
|
@ -245,4 +245,13 @@ class TestConnectionPool < Minitest::Test
|
|||
|
||||
assert_equal [["shutdown"]] * 3, recorders.map { |r| r.calls }
|
||||
end
|
||||
|
||||
def test_wrapper_respond_to_eh
|
||||
wrapper = ConnectionPool::Wrapper.new { NetworkConnection.new }
|
||||
|
||||
assert_respond_to wrapper, :with
|
||||
|
||||
assert_respond_to wrapper, :fast
|
||||
refute_respond_to wrapper, :"nonexistent method"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue