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

Version Path
ydbd-pg-0.6.0 test/dbd/postgresql/test_ping.rb
ydbi-0.6.0 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.9 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.8 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.7 test/dbd/postgresql/test_ping.rb
ydbi-0.5.7 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.6 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.5 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.4 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.3 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.2 test/dbd/postgresql/test_ping.rb
ydbd-pg-0.5.1 test/dbd/postgresql/test_ping.rb
ydbi-0.5.0 test/dbd/postgresql/test_ping.rb
dbd-pg-0.3.9 test/dbd/postgresql/test_ping.rb
dbd-pg-0.3.8 test/dbd/postgresql/test_ping.rb
dbd-pg-0.3.7 test/dbd/postgresql/test_ping.rb
dbd-pg-0.3.6 test/dbd/postgresql/test_ping.rb