Sha256: 52b5f008c44d17be065596c40d0ee5e175321026e8567a20f35699996f0d3651
Contents?: true
Size: 508 Bytes
Versions: 9
Compression:
Stored size: 508 Bytes
Contents
# coding: utf-8 require 'spec_helper' RSpec.describe TTY::Table, 'properties' do let(:rows) {[['a1', 'a2', 'a3'], ['b1', 'b2', 'c3']] } subject(:table) { described_class.new rows } it { expect(table.width).to eq(6) } it { expect(table.rows_size).to eq(2) } it { expect(table.columns_size).to eq(3) } it { expect(table.size).to eq([2,3]) } context 'no size' do let(:rows) { [] } it { expect(table.rows_size).to eq(0) } it { expect(table.columns_size).to eq(0) } end end
Version data entries
9 entries across 9 versions & 1 rubygems