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
activerecord-jdbc-adapter-1.2.9.1 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.3.0.beta2 test/sybase_jtds_simple_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.2 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.3.0.beta1 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.2.9 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.2.8 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.2.5 test/sybase_jtds_simple_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.5 test/sybase_jtds_simple_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.4 test/sybase_jtds_simple_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.3 test/sybase_jtds_simple_test.rb
tgbyte-activerecord-jdbc-adapter-1.2.2.2 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.2.2.1 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-onsite-1.2.2 test/sybase_jtds_simple_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1.1 test/sybase_jtds_simple_test.rb
intentmedia-activerecord-jdbc-adapter-1.1.1.1 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.2.2 test/sybase_jtds_simple_test.rb
cmoran92-activerecord-jdbc-adapter-1.2.1 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.2.1 test/sybase_jtds_simple_test.rb
c3-activerecord-jdbc-adapter-1.1.3.1 test/sybase_jtds_simple_test.rb
activerecord-jdbc-adapter-1.2.0 test/sybase_jtds_simple_test.rb