Skip to content

Commit

Permalink
added test to support my case
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom van Leeuwen committed Oct 25, 2012
1 parent a042140 commit e98391b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/cell_spec.rb
Expand Up @@ -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.