Sha256: a24df479441d250e03245e0dbc88daec23d1fb238b7e5df92c101745f6f085c6
Contents?: true
Size: 357 Bytes
Versions: 17
Compression:
Stored size: 357 Bytes
Contents
class TestPostgresPing < DBDConfig.testbase(:postgresql) def test_ping config = DBDConfig.get_config['postgresql'] dbh = DBI.connect("dbi:Pg:#{config['dbname']}", config['username'], config['password']) assert dbh assert dbh.ping dbh.disconnect assert_raises(DBI::InterfaceError) { dbh.ping } end end
Version data entries
17 entries across 17 versions & 3 rubygems