Sha256: 8a205c1d5c2d51098a4ce61c229d47f5f3733b7cfa7dd94997229233dc74f6ab

Contents?: true

Size: 430 Bytes

Versions: 9

Compression:

Stored size: 430 Bytes

Contents

require 'spec_helper'

describe 'db column' do
  it "the same" do
    a = Automigration::DbColumn.new('field', 'integer',
      :default => 3,
      :null => true,
      :limit => 3,
      :scale => 1,
      :precision => 2)

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

    a.the_same?(b).should be_true
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
automigration-1.1.4 spec/lib/db_column_spec.rb
automigration-1.1.3 spec/lib/db_column_spec.rb
automigration-1.1.2 spec/lib/db_column_spec.rb
automigration-1.1.1 spec/lib/db_column_spec.rb
automigration-1.1.0 spec/lib/db_column_spec.rb
automigration-1.0.3 spec/lib/db_column_spec.rb
automigration-1.0.2 spec/lib/db_column_spec.rb
automigration-1.0.1 spec/lib/db_column_spec.rb
automigration-1.0.0 spec/lib/db_column_spec.rb