Sha256: eb9dc21c4fd6c77d9fa6614cdef29eac4c33ae1e7cc53a5d53dc9400640559ea

Contents?: true

Size: 532 Bytes

Versions: 7

Compression:

Stored size: 532 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'spec_helper'

describe TTY::Table::Operation::AlignmentSet, '#new' do
  let(:object) { described_class }

  subject { object.new(argument) }

  context 'with no argument' do
    let(:argument) { [] }

    it { should be_kind_of(Enumerable) }

    it { should be_instance_of(object) }

    its(:alignments) { should == [] }
  end

  context 'with argument' do
    let(:argument) { [:center, :left] }

    it { should be_instance_of(object) }

    its(:alignments) { should == argument }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tty-0.0.11 spec/tty/table/operation/alignment_set/new_spec.rb
tty-0.0.10 spec/tty/table/operation/alignment_set/new_spec.rb
tty-0.0.9 spec/tty/table/operation/alignment_set/new_spec.rb
tty-0.0.8 spec/tty/table/operation/alignment_set/new_spec.rb
tty-0.0.7 spec/tty/table/operation/alignment_set/new_spec.rb
tty-0.0.6 spec/tty/table/operation/alignment_set/new_spec.rb
tty-0.0.5 spec/tty/table/operation/alignment_set/new_spec.rb