Sha256: a098bbd94bc3aff9f56cc08d3fc226a38fecb429364bf38691ad0e2d3410e1c1

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

describe Terminal::Table do
  
  Cell = Terminal::Table::Cell
  
  it "should initialize with a string" do
    cell = Cell.new 0, 'Foo'
    cell.value.should == 'Foo'
    cell.alignment.should == :left
  end
  
  it "should initialize with a hash" do
    cell = Cell.new 0, :value => 'Bar', :align => :right
    cell.value.should == 'Bar'
    cell.alignment.should == :right    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
visionmedia-terminal-table-1.0.1 spec/cell_spec.rb
visionmedia-terminal-table-1.0.4 spec/cell_spec.rb