Sha256: 00385c8fcd4d08f47670fb01c938d28c4d6f0096183e52ca8a8c546dcbef0bf4

Contents?: true

Size: 769 Bytes

Versions: 34

Compression:

Stored size: 769 Bytes

Contents

require 'jdbc_common'
require 'db/sybase_jtds'

class SybaseJtdsSimpleTest < Test::Unit::TestCase
  include SimpleTestMethods
end

class SybaseAdapterSelectionTest < Test::Unit::TestCase
  class MockConnection
    def adapter=(adapt)
    end
  end

  def test_jtds_selection_using_dialect
    config = {
      :driver =>  'net.sourceforge.jtds.Driver',
      :dialect => 'sybase'
    }
    adapt = JdbcAdapter.new(MockConnection.new, nil, config)
    assert adapt.kind_of?(ArJdbc::Sybase), "Should be a sybase adapter"
  end

  def test_jtds_selection_not_using_dialect
    config = { :driver => 'net.sourceforge.jtds.Driver' }
    adapt = JdbcAdapter.new(MockConnection.new, nil, config)
    assert adapt.kind_of?(ArJdbc::MsSQL), "Should be a MsSQL apdater"
  end
end

Version data entries

34 entries across 34 versions & 8 rubygems

Version Path
c3-activerecord-jdbc-adapter-1.1.3 test/sybase_jtds_simple_test.rb
jashmenn-activerecord-jdbc-adapter-1.2.0.0 test/sybase_jtds_simple_test.rb
jashmenn-activerecord-jdbc-adapter-1.2.0 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.1.3 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.1.2 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.1.1 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.1.0 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.0.3-java test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.0.2-java test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.0.1-java test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.0.0-java test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.0.0.beta2-java test/sybase_jtds_simple_test.rb
kb-activerecord-jdbc-adapter-1.0.0.beta1-java test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.0.0.beta1-java test/sybase_jtds_simple_test.rb