Sha256: c7c59a2360d2534eb58256838ba188c66e26f12677c755151b0056cdc128dc52
Contents?: true
Size: 819 Bytes
Versions: 18
Compression:
Stored size: 819 Bytes
Contents
require 'jdbc_common' require 'jdbc_adapter' class MockConnection def adapter=( adapt ) end end module ActiveRecord module ConnectionAdapters class SybaseAdapterSelectionTest < Test::Unit::TestCase def testJtdsSelectionUsingDialect() config = { :driver => 'net.sourceforge.jtds.Driver', :dialect => 'sybase' } adapt = JdbcAdapter.new(MockConnection.new, nil, config) assert adapt.kind_of?(JdbcSpec::Sybase), "Should be a sybase adapter" end def testJtdsSelectionNotUsingDialect config = { :driver => 'net.sourceforge.jtds.Driver' } adapt = JdbcAdapter.new(MockConnection.new, nil, config) assert adapt.kind_of?(JdbcSpec::MsSQL), "Should be a MsSQL apdater" end end end end
Version data entries
18 entries across 18 versions & 4 rubygems