spec/tty/text/truncation/truncate_spec.rb in tty-0.0.7 vs spec/tty/text/truncation/truncate_spec.rb in tty-0.0.8

- old
+ new

@@ -23,9 +23,15 @@ let(:length) { nil } it { should == text } end + context 'with equal length' do + let(:length) { text.length } + + it { should == text } + end + context 'with truncation' do let(:length) { 12 } it { should == "ラドクリフ、マラソン五#{trailing}" } end