Sha256: b23c69f4d3092f50918e02b0bfbfada8418711102eb5210d8201f4f673a0bc00

Contents?: true

Size: 437 Bytes

Versions: 9

Compression:

Stored size: 437 Bytes

Contents

require 'spec_helper'

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

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