Sha256: 490f70c5194801204446c6745fcf01dcc80c6715edfd0fc233236792a46a7b83

Contents?: true

Size: 294 Bytes

Versions: 9

Compression:

Stored size: 294 Bytes

Contents

# coding: utf-8

require 'spec_helper'

RSpec.describe TTY::Table, '.data' do
  it 'gets all table data' do
    header = ['h1', 'h2', 'h3']
    rows = [['a1', 'a2', 'a3'], ['b1', 'b2', 'b3']]
    table = described_class.new header, rows
    expect(table.data).to eql([header] + rows)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tty-table-0.10.0 spec/unit/data_spec.rb
tty-table-0.9.0 spec/unit/data_spec.rb
tty-table-0.8.0 spec/unit/data_spec.rb
tty-table-0.7.0 spec/unit/data_spec.rb
tty-table-0.6.0 spec/unit/data_spec.rb
tty-table-0.5.0 spec/unit/data_spec.rb
tty-table-0.4.0 spec/unit/data_spec.rb
tty-table-0.3.0 spec/unit/data_spec.rb
tty-table-0.2.0 spec/unit/data_spec.rb