Sha256: 768bca9d7dbb6533024d5d0e8e33db6cbf9c4a5e1c2b6a6d86108a20270d5f8a

Contents?: true

Size: 414 Bytes

Versions: 9

Compression:

Stored size: 414 Bytes

Contents

require 'spec_helper'

describe 'MACADDR schema dump' do
  let!(:connection) { ActiveRecord::Base.connection }
  it 'correctly generates macaddr column statements' do
    stream = StringIO.new
    connection.create_table :testings do |t|
      t.macaddr :mac_address_column
    end

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
postgres_ext-0.0.9 spec/schema_dumper/macaddr_spec.rb
postgres_ext-0.0.8 spec/schema_dumper/macaddr_spec.rb
postgres_ext-0.0.7 spec/schema_dumper/macaddr_spec.rb
postgres_ext-0.0.6 spec/schema_dumper/macaddr_spec.rb
postgres_ext-0.0.5 spec/schema_dumper/macaddr_spec.rb
postgres_ext-0.0.4 spec/schema_dumper/macaddr_spec.rb
postgres_ext-0.0.3 spec/schema_dumper/macaddr_spec.rb
postgres_ext-0.0.2 spec/schema_dumper/macaddr_spec.rb
postgres_ext-0.0.1 spec/schema_dumper/macaddr_spec.rb