Sha256: 1145b45db3b416d26d840c366d92a5ea672474fb4bfc50571ff669cea10cd3cb

Contents?: true

Size: 393 Bytes

Versions: 9

Compression:

Stored size: 393 Bytes

Contents

require 'spec_helper'

describe 'INET schema dump' do
  let!(:connection) { ActiveRecord::Base.connection }
  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-0.0.9 spec/schema_dumper/inet_spec.rb
postgres_ext-0.0.8 spec/schema_dumper/inet_spec.rb
postgres_ext-0.0.7 spec/schema_dumper/inet_spec.rb
postgres_ext-0.0.6 spec/schema_dumper/inet_spec.rb
postgres_ext-0.0.5 spec/schema_dumper/inet_spec.rb
postgres_ext-0.0.4 spec/schema_dumper/inet_spec.rb
postgres_ext-0.0.3 spec/schema_dumper/inet_spec.rb
postgres_ext-0.0.2 spec/schema_dumper/inet_spec.rb
postgres_ext-0.0.1 spec/schema_dumper/inet_spec.rb