Sha256: 01e331b274f557d15641f6865794cbe7ee155a4ee07825805c67202fa51701fd

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe TTY::Table::Header, '#to_ary' do
  let(:object)     { described_class.new(attributes) }
  let(:attributes) { [:id, :name, :age] }

  subject { object.to_ary }

  it { is_expected.to be_instance_of(Array) }

  it { is_expected.to eq(attributes) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

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