Skip to content
This repository
Browse code

added test to support my case

  • Loading branch information...
commit e98391b1bf69caae631f307f8a9724cbade9838b 1 parent a042140
Tom van Leeuwen authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 spec/cell_spec.rb
6 spec/cell_spec.rb
@@ -51,4 +51,10 @@ class String; include Term::ANSIColor; end
51 51 cell.render.should == " foo "
52 52 end
53 53
  54 + it "should not ignore pipe characters" do
  55 + cell = Cell.new :value => "f|o|o", :table => Terminal::Table.new, :index => 0
  56 + cell.value.should == "f|o|o"
  57 + cell.value_for_column_width_recalc.should == 'f|o|o'
  58 + cell.render.should == " f|o|o "
  59 + end
54 60 end

0 comments on commit e98391b

Please sign in to comment.
Something went wrong with that request. Please try again.