1
0
Fork 0
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:
Eric Hodel 2014-02-14 15:45:57 -08:00
parent 9e3944b718
commit a7a6fe98c5

View file

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