Sha256: 5785ed0ca9ee65a50cd042161e27dd17d81c1de9842ea7425baf0b3640f12bf0
Contents?: true
Size: 638 Bytes
Versions: 3
Compression:
Stored size: 638 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe TTY::Table::Renderer::ASCII, 'with separator' do let(:header) { ['h1', 'h2', 'h3'] } let(:rows) { [['a1', 'a2', 'a3'], ['b1', 'b2', 'b3']] } let(:table) { TTY::Table.new(header, rows) } let(:object) { described_class.new table } subject(:renderer) { object } context 'when ascii' do it "renders each row" do renderer.border.separator= :each_row expect(renderer.render).to eq <<-EOS.normalize +--+--+--+ |h1|h2|h3| +--+--+--+ |a1|a2|a3| +--+--+--+ |b1|b2|b3| +--+--+--+ EOS end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/renderer/ascii/separator_spec.rb |
tty-0.1.1 | spec/tty/table/renderer/ascii/separator_spec.rb |
tty-0.1.0 | spec/tty/table/renderer/ascii/separator_spec.rb |