Sha256: af033611a6b741ea2b9a417d5e0dac2710233a4bc15656ddb0d584e1e9ffac52
Contents?: true
Size: 342 Bytes
Versions: 1
Compression:
Stored size: 342 Bytes
Contents
# coding: utf-8 # frozen_string_literal: true RSpec.describe TTY::Table::Columns, '#extract_widths!' do let(:header) { ['h1', 'h2', 'h3'] } let(:rows) { [['a1', 'a2', 'a3'], ['b1', 'b2', 'b3']] } it 'extract widths' do table = TTY::Table.new(header, rows) expect(described_class.total_width(table.data)).to eql(6) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-table-0.10.0 | spec/unit/columns/total_width_spec.rb |