Sha256: 76bd488bbbd4ec17b669ea3ad6b27c7574d45cba9f9c0d18425effd477c81bed

Contents?: true

Size: 520 Bytes

Versions: 2

Compression:

Stored size: 520 Bytes

Contents

require 'db/postgres'

class PostgresInformationSchemaLeakTest < Test::Unit::TestCase
  
  class CreateISLSchema < ActiveRecord::Migration
    def self.up
      execute "CREATE TABLE domains (id int, name varchar(16))"
    end

    def self.down
      execute "DROP TABLE domains"
    end
  end

  class Domain < ActiveRecord::Base
  end
  
  def setup
    CreateISLSchema.up
  end

  def teardown
    CreateISLSchema.down
  end

  def test_domain_columns
    assert_equal(%w{id name}, Domain.column_names)
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-jdbc-adapter-1.3.0.beta2 test/db/postgres/information_schema_leak_test.rb
activerecord-jdbc-adapter-1.3.0.beta1 test/db/postgres/information_schema_leak_test.rb