Sha256: 9ef650b827fea40272e42fcce0a512e48405cdba44262dfd3283cf0168fd3101

Contents?: true

Size: 449 Bytes

Versions: 7

Compression:

Stored size: 449 Bytes

Contents

require 'spec_helper'

describe 'CITEXT schema dump' do
  let!(:connection) { ActiveRecord::Base.connection }
  after { connection.drop_table :testings }
  it 'correctly generates citext column statements' do
    stream = StringIO.new
    connection.create_table :testings do |t|
      t.citext :citext_column
    end

    ActiveRecord::SchemaDumper.dump(connection, stream)
    output = stream.string

    output.should match /t\.citext/
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
postgres_ext-1.0.0 spec/schema_dumper/citext_spec.rb
postgres_ext-0.4.0 spec/schema_dumper/citext_spec.rb
postgres_ext-0.3.1 spec/schema_dumper/citext_spec.rb
postgres_ext-0.3.0 spec/schema_dumper/citext_spec.rb
postgres_ext-0.2.2 spec/schema_dumper/citext_spec.rb
postgres_ext-0.2.1 spec/schema_dumper/citext_spec.rb
postgres_ext-0.2.0 spec/schema_dumper/citext_spec.rb