Sha256: 934f69f26482546eb7c82a5203aa992743c0050e693978eae1537a882e4a1bf8

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

3 entries across 3 versions & 1 rubygems

Version Path
tty-0.1.2 spec/tty/table/header_spec.rb
tty-0.1.1 spec/tty/table/header_spec.rb
tty-0.1.0 spec/tty/table/header_spec.rb