Sha256: 3070beb69abbafd78475c9b8224143eb16e549389d4e6397a6c688717cdceabf

Contents?: true

Size: 396 Bytes

Versions: 8

Compression:

Stored size: 396 Bytes

Contents

require 'pathname'
require Pathname(__FILE__).dirname + '../../spec_helper'

require Pathname(__FILE__).dirname + '../../../lib/sql/column'

describe SQL::Column do
  before do
    @column = SQL::Column.new
  end

  %w{name type not_null default_value primary_key unique}.each do |meth|
    it "should have a ##{meth} attribute" do
      @column.should respond_to(meth.intern)
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dm-migrations-0.9.10 spec/unit/sql/column_spec.rb
dm-migrations-0.9.11 spec/unit/sql/column_spec.rb
dm-migrations-0.9.4 spec/unit/sql/column_spec.rb
dm-migrations-0.9.5 spec/unit/sql/column_spec.rb
dm-migrations-0.9.6 spec/unit/sql/column_spec.rb
dm-migrations-0.9.8 spec/unit/sql/column_spec.rb
dm-migrations-0.9.9 spec/unit/sql/column_spec.rb
dm-migrations-0.9.7 spec/unit/sql/column_spec.rb