Sha256: e08860f95d23d5917f9959d072c9379c58cd98873776f742726ae9303dad6d62
Contents?: true
Size: 499 Bytes
Versions: 1
Compression:
Stored size: 499 Bytes
Contents
require 'spec_helper' describe 'array schema dump' do let!(:connection) { ActiveRecord::Base.connection } after { connection.drop_table :testings } it 'correctly generates cidr column statements' do stream = StringIO.new connection.create_table :testings do |t| t.integer :network_column, :array => true end ActiveRecord::SchemaDumper.dump(connection, stream) output = stream.string output.should match /t\.integer "network_column".*?:array => true/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-postgis-array-0.3.4 | spec/schema_dumper/array_spec.rb |