Sha256: 84c931a041fb945a94eefb761febb057b0e4b46cc84659350cf091959fa50dfc

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

describe Terminal::Table do
  
  Cell = Terminal::Table::Cell
  
  it "should default alignment to the left" do
    cell = Cell.new 0, 'foo'
    cell.value.should == 'foo'
    cell.alignment.should == :left
  end

  it "should override alignment" do
    cell = Cell.new 0, 'foo', :center
    cell.value.should == 'foo'
    cell.alignment.should == :center
  end
  
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
smtlaissezfaire-terminal-table-1.0.5 spec/cell_spec.rb
visionmedia-terminal-table-1.0.5 spec/cell_spec.rb