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

Version Path
saturnflyer-activerecord-jdbc-adapter-0.9.3 test/jdbc_adapter/jdbc_sybase_test.rb
kb-activerecord-jdbc-adapter-0.9.7.1-java test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9.7-java test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9.6-java test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9.5-java test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9.4-java test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9.3-java test/jdbc_adapter/jdbc_sybase_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.6 test/jdbc_adapter/jdbc_sybase_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.5 test/jdbc_adapter/jdbc_sybase_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.4 test/jdbc_adapter/jdbc_sybase_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.3 test/jdbc_adapter/jdbc_sybase_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.2 test/jdbc_adapter/jdbc_sybase_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.1 test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9.0.1 test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9.2 test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9 test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.8.2 test/jdbc_adapter/jdbc_sybase_test.rb
activerecord-jdbc-adapter-0.9.1 test/jdbc_adapter/jdbc_sybase_test.rb