Sha256: ab65f3f686a3098b7f0671f6ef73884f8f7432e9f9f1ef7a5b5924153f512ae6
Contents?: true
Size: 500 Bytes
Versions: 3
Compression:
Stored size: 500 Bytes
Contents
# encoding: utf-8 require 'spec_helper' 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.row_size).to eq(2) } it { expect(table.column_size).to eq(3) } it { expect(table.size).to eq([2,3]) } context 'no size' do let(:rows) { [] } it { expect(table.row_size).to eq(0) } it { expect(table.column_size).to eq(0) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/properties_spec.rb |
tty-0.1.1 | spec/tty/table/properties_spec.rb |
tty-0.1.0 | spec/tty/table/properties_spec.rb |