Sha256: c1ceecf1415e8af53c15fa5a61cd8139cf6fb9a5f6b45138ddf447f288d58da9
Contents?: true
Size: 493 Bytes
Versions: 7
Compression:
Stored size: 493 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.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
7 entries across 7 versions & 1 rubygems