Sha256: 2c1bccf5dbfbd39557be639dfca357285aa7d74fcdf4488ca3b2b7490fef730b
Contents?: true
Size: 511 Bytes
Versions: 3
Compression:
Stored size: 511 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe TTY::Table::Header, '#height' do let(:object) { described_class.new header } subject { object.height } context 'single row' do let(:header) { ['h1', 'h1'] } it { expect(subject).to eql(1) } end context 'non escaped multiline' do let(:header) { ["h1\nh1\nh1", 'h2'] } it { expect(subject).to eql(3)} end context 'escaped multiline' do let(:header) { ["h1\\h1\\h1", 'h2'] } it { expect(subject).to eql(1) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/header/height_spec.rb |
tty-0.1.1 | spec/tty/table/header/height_spec.rb |
tty-0.1.0 | spec/tty/table/header/height_spec.rb |