Sha256: 7ccad3ca00bb4069b8059dfc327c8ed19d34dcbcf8b16ca13c882433a6bcf4f8

Contents?: true

Size: 632 Bytes

Versions: 95

Compression:

Stored size: 632 Bytes

Contents

require 'test/unit'

class IBM_DBAdapterTest < Test::Unit::TestCase
  require 'pathname'

  # Fixture
  def driver_lib_path
    drv_path = Pathname.new(File.dirname(__FILE__)).parent + 'lib'
    drv_path += (RUBY_PLATFORM =~ /mswin32/) ? 'mswin32' : 'linux32'
    drv_path += 'ibm_db.so'
  end

  # Check IBM_DB Ruby driver for this platform: #{RUBY_PLATFORM}
  def test_driver_existence
    driver = driver_lib_path
    assert driver.file?
  end

  # Attempt loading IBM_DB Ruby driver for this platform: #{RUBY_PLATFORM}
  def test_driver_loading
    driver = driver_lib_path
    require "#{driver.to_s}"
    assert true
  end
end

Version data entries

95 entries across 95 versions & 2 rubygems

Version Path
ibm_db-5.5.0 test/ibm_db_test.rb
ibm_db-5.4.1 test/ibm_db_test.rb
ibm_db-5.4.0 test/ibm_db_test.rb
ibm_db-5.3.2 test/ibm_db_test.rb
ibm_db-5.3.1 test/ibm_db_test.rb
ibm_db-5.2.0 test/ibm_db_test.rb
ibm_db-5.1.0 test/ibm_db_test.rb
ibm_db-5.0.5 test/ibm_db_test.rb
ibm_db-5.0.4 test/ibm_db_test.rb
ibm_db-5.0.3 test/ibm_db_test.rb
ibm_db-5.0.2 test/ibm_db_test.rb
ibm_db-3.0.4-x86-mingw32 test/ibm_db_test.rb
ibm_db-3.0.4 test/ibm_db_test.rb
ibm_db-3.0.3-x86-mingw32 test/ibm_db_test.rb
ibm_db-3.0.3 test/ibm_db_test.rb
ibm_db-3.0.2-x86-mingw32 test/ibm_db_test.rb
ibm_db-3.0.2 test/ibm_db_test.rb
ibm_db-3.0.1 test/ibm_db_test.rb
ibm_db-3.0.1-x86-mingw32 test/ibm_db_test.rb
ibm_db-2.5.27-x86-mingw32 test/ibm_db_test.rb