Sha256: 4f2f7b90f23d702ed0efed76c7b4b47f992c1dbd248ec9390a04f5bed5b01326

Contents?: true

Size: 307 Bytes

Versions: 10

Compression:

Stored size: 307 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

RSpec.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

10 entries across 10 versions & 1 rubygems

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