Sha256: 24b75d4b47e4719aed82d7de15b11ffbc4549312e1a86bd70bcfbceff51e02a6
Contents?: true
Size: 587 Bytes
Versions: 3
Compression:
Stored size: 587 Bytes
Contents
require_relative '../../spec_helper' describe SQL::Table do before do @table = SQL::Table.new end %w{name columns}.each do |meth| it "has a ##{meth} attribute" do expect(@table).to respond_to(meth.intern) end end it 'uses #to_s for the name' do @table.name = "table_name" expect(@table.to_s).to eq 'table_name' end it 'finds a column by name' do column_a = double('column', :name => 'id') column_b = double('column', :name => 'login') @table.columns = [column_a, column_b] expect(@table.column('id')).to eq column_a end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-migrations-1.4.0.beta.1 | spec/unit/sql/table_spec.rb |
sbf-dm-migrations-1.3.0 | spec/unit/sql/table_spec.rb |
sbf-dm-migrations-1.3.0.beta | spec/unit/sql/table_spec.rb |