Sha256: 2892f9a5f81acd31513a013b7bc1bd60ab46f419e96ddc74db87c2e9f3d6b9e2
Contents?: true
Size: 442 Bytes
Versions: 9
Compression:
Stored size: 442 Bytes
Contents
require 'spec_helper' describe 'CIDR 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 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