Sha256: 0e23d338416b172ee1ede037091837c3bcaf7b94519ced827a8b627af0b6aa87
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe TTY::Table::Operation::AlignmentSet, '#each' do let(:alignments) { [:left, :center, :right] } let(:yields) { [] } let(:object) { described_class.new alignments } subject { object.each { |alignment| yields << alignment } } it 'yields each alignment' do expect { subject }.to change { yields.dup }. from([]). to(alignments) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-0.1.2 | spec/tty/table/operation/alignment_set/each_spec.rb |
tty-0.1.1 | spec/tty/table/operation/alignment_set/each_spec.rb |
tty-0.1.0 | spec/tty/table/operation/alignment_set/each_spec.rb |