Sha256: eec7e2097cff2ba3bec4bd2507dab2e08e21a9f61db26e6cc7039d0cd76619ef

Contents?: true

Size: 546 Bytes

Versions: 5

Compression:

Stored size: 546 Bytes

Contents

require 'test_helper'
require 'yaml'

class PtOscAdapterTest < Test::Unit::TestCase
  class TestConnection < ActiveRecord::Base; end

  def test_connection
    # Test that we can open a connection with the pt_osc adapter
    spec = test_spec
    spec.delete('database') # We don't care whether the database exists

    assert_nothing_raised { TestConnection.establish_connection(spec) }
    assert_equal true, TestConnection.connection.in_use
    assert_kind_of ActiveRecord::ConnectionAdapters::PtOscAdapter, TestConnection.connection
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pt-osc-0.0.5 test/functional/pt_osc_adapter_test.rb
pt-osc-0.0.4 test/functional/pt_osc_adapter_test.rb
pt-osc-0.0.3 test/functional/pt_osc_adapter_test.rb
pt-osc-0.0.2 test/functional/pt_osc_adapter_test.rb
pt-osc-0.0.1 test/functional/pt_osc_adapter_test.rb