Methods
C
S
T
Included Modules
Instance Public methods
cable_config()
# File actioncable/test/subscription_adapter/postgresql_test.rb, line 37
def cable_config
  { adapter: 'postgresql' }
end
setup()
# File actioncable/test/subscription_adapter/postgresql_test.rb, line 9
def setup
  database_config = { 'adapter' => 'postgresql', 'database' => 'activerecord_unittest' }
  ar_tests = File.expand_path('../../../activerecord/test', __dir__)
  if Dir.exist?(ar_tests)
    require File.join(ar_tests, 'config')
    require File.join(ar_tests, 'support/config')
    local_config = ARTest.config['arunit']
    database_config.update local_config if local_config
  end

  ActiveRecord::Base.establish_connection database_config

  begin
    ActiveRecord::Base.connection
  rescue
    @rx_adapter = @tx_adapter = nil
    skip "Couldn't connect to PostgreSQL: #{database_config.inspect}"
  end

  super
end
teardown()
# File actioncable/test/subscription_adapter/postgresql_test.rb, line 31
def teardown
  super

  ActiveRecord::Base.clear_all_connections!
end