Sha256: 3c12f41d93c5d0eec73465ef775cfa87b8e56f38ef40f8a2a86061e69f58a820
Contents?: true
Size: 831 Bytes
Versions: 2
Compression:
Stored size: 831 Bytes
Contents
DBDConfig.set_testbase(:sqlanywhere, Class.new(Test::Unit::TestCase) do def dbtype "sqlanywhere" end def test_base assert_equal(@dbh.driver_name, "SQLAnywhere") assert_kind_of(DBI::DBD::SQLAnywhere::Database, @dbh.instance_variable_get(:@handle)) end def set_base_dbh config = DBDConfig.get_config["sqlanywhere"] @dbh = DBI.connect("dbi:SQLAnywhere:"+config["dbname"], config["username"], config["password"], { }) end def setup set_base_dbh DBDConfig.inject_sql(@dbh, dbtype, "dbd/sqlanywhere/up.sql") end def teardown DBDConfig.inject_sql(@dbh, dbtype, "dbd/sqlanywhere/down.sql") @dbh.disconnect end end )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dbd-sqlanywhere-1.0.1 | test/dbd/sqlanywhere/base.rb |
dbd-sqlanywhere-1.0.0 | test/dbd/sqlanywhere/base.rb |