Sha256: 1ebdbf79781c10453466a665811a228e32341e867a25c00ca125cd72e7321dfc

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

require 'test_helper'

module Automigration
  class DbColumnTest < ActiveSupport::TestCase
    def test_the_same
      a = Fields::Sys::DbColumn.new('field', 'integer',
        :default => 3,
        :null => true,
        :limit => 3,
        :scale => 1,
        :precision => 2)

      b = Fields::Sys::DbColumn.new('field', 'integer',
        :default => 3,
        :null => true,
        :limit => 3,
        :scale => 1,
        :precision => 2)

      assert a.the_same?(b)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
automigration-0.2.2 test/db_column_test.rb
automigration-0.2.1 test/db_column_test.rb