Permalink
Browse files

added test to support my case

  • Loading branch information...
1 parent a042140 commit e98391b1bf69caae631f307f8a9724cbade9838b Tom van Leeuwen committed Oct 25, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/cell_spec.rb
View
@@ -51,4 +51,10 @@ class String; include Term::ANSIColor; end
cell.render.should == " foo "
end
+ it "should not ignore pipe characters" do
+ cell = Cell.new :value => "f|o|o", :table => Terminal::Table.new, :index => 0
+ cell.value.should == "f|o|o"
+ cell.value_for_column_width_recalc.should == 'f|o|o'
+ cell.render.should == " f|o|o "
+ end
end

0 comments on commit e98391b

Please sign in to comment.