spec/cell_spec.rb in terminal-table-1.2.0 vs spec/cell_spec.rb in terminal-table-1.3.0

- old
+ new

@@ -1,19 +1,18 @@ -require File.expand_path(File.dirname(__FILE__) + "/spec_helper") +require File.dirname(__FILE__) + '/spec_helper' + 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, {:value => 'foo', :alignment => :center} + it "should allow overriding of alignment" do + cell = Cell.new 0, :value => 'foo', :alignment => :center cell.value.should == 'foo' cell.alignment.should == :center end - end