Sha256: cffcc233d006d5bd2a6d77d75f7d3a7056f34809c022609b50122e0cc186fff4
Contents?: true
Size: 434 Bytes
Versions: 2
Compression:
Stored size: 434 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe TTY::Table::Operation::Truncation, '#truncate' do let(:instance) { described_class.new [] } let(:text) { '太丸ゴシック体' } subject { instance.truncate(text, width) } context 'without shortening' do let(:width) { 8 } it { should == text } end context 'with shortening' do let(:width) { 5 } it { should == '太丸ゴシ…' } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tty-0.0.11 | spec/tty/table/operation/truncation/truncate_spec.rb |
tty-0.0.10 | spec/tty/table/operation/truncation/truncate_spec.rb |