Sha256: 44a40a551ad0e16205f1c4fb0a4ab4d2e87e234b114ea81db65cb8845c63274f

Contents?: true

Size: 323 Bytes

Versions: 10

Compression:

Stored size: 323 Bytes

Contents

# coding: utf-8

require 'spec_helper'

RSpec.describe TTY::Table, '#header' do
  let(:header) { [:header1, :header2] }
  let(:rows)   { [['a1', 'a2'], ['b1', 'b2']] }
  let(:object) { described_class }

  subject(:table) { object.new header, rows }

  it { expect(table.header).to be_instance_of(TTY::Table::Header) }
end

Version data entries

10 entries across 10 versions & 1 rubygems

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