Sha256: f40bd8ac1595d84d4eb0cf3cfe24c86a6df6c827287dc98530189852d018cf4f
Contents?: true
Size: 692 Bytes
Versions: 9
Compression:
Stored size: 692 Bytes
Contents
# coding: utf-8 require 'spec_helper' RSpec.describe TTY::Table::Renderer::Unicode, '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 } it "renders each row" do renderer.border.separator= :each_row expect(renderer.render).to eq unindent(<<-EOS) ┌──┬──┬──┐ │h1│h2│h3│ ├──┼──┼──┤ │a1│a2│a3│ ├──┼──┼──┤ │b1│b2│b3│ └──┴──┴──┘ EOS end end
Version data entries
9 entries across 9 versions & 1 rubygems