Sha256: 2a123c927ce9d374304be6a042811c44549f7e41bde572404cc45e6b9cf15a8f

Contents?: true

Size: 398 Bytes

Versions: 9

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper'

describe 'CIDR 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
    end

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

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