changes needed due to 3c91978d36

add posibility to inspect availability of a resource in a pool (testing only)
allow access to internal connection pool of db (testing only)
This commit is contained in:
Brian J. Cardiff 2016-08-29 13:14:47 -03:00
parent 3c91978d36
commit 8d891a5a4e
4 changed files with 28 additions and 1 deletions

View file

@ -124,7 +124,8 @@ describe DB::Statement do
expect_raises do
db.exec "raise"
end
db.@in_pool.should be_true
DummyDriver::DummyConnection.connections.size.should eq(1)
db.pool.is_available?(DummyDriver::DummyConnection.connections.first)
end
end
end