Sha256: eed2d81d6e8aef68e869a7b7a8b77217986df4098df81e1a7e3f4b1c3a5314ab

Contents?: true

Size: 449 Bytes

Versions: 9

Compression:

Stored size: 449 Bytes

Contents

require 'spec_helper'

describe 'array schema dump' do
  let!(:connection) { ActiveRecord::Base.connection }
  it 'correctly generates cidr column statements' do
    stream = StringIO.new
    connection.create_table :testings do |t|
      t.cidr :network_column, :array => true
    end

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

    output.should match /t\.cidr "network_column".*?:array => true/
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
postgres_ext-0.0.9 spec/schema_dumper/array_spec.rb
postgres_ext-0.0.8 spec/schema_dumper/array_spec.rb
postgres_ext-0.0.7 spec/schema_dumper/array_spec.rb
postgres_ext-0.0.6 spec/schema_dumper/array_spec.rb
postgres_ext-0.0.5 spec/schema_dumper/array_spec.rb
postgres_ext-0.0.4 spec/schema_dumper/array_spec.rb
postgres_ext-0.0.3 spec/schema_dumper/array_spec.rb
postgres_ext-0.0.2 spec/schema_dumper/array_spec.rb
postgres_ext-0.0.1 spec/schema_dumper/array_spec.rb