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