Sha256: e03c6aacebf1e83e5b9c7dfae3b9a7adb9c0be6fa01d74388346163ede6690e0
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 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 { is_expected.to be_kind_of(Enumerable) } it { is_expected.to be_instance_of(object) } it { expect(subject.alignments).to eq([]) } end context 'with argument' do let(:argument) { [:center, :left] } it { is_expected.to be_instance_of(object) } it { expect(subject.alignments).to eq(argument) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/operation/alignment_set/new_spec.rb |
tty-0.1.1 | spec/tty/table/operation/alignment_set/new_spec.rb |
tty-0.1.0 | spec/tty/table/operation/alignment_set/new_spec.rb |