Sha256: 04c663c9f48ee1521becc1fdc5889bb974605ed2d5dda13fdf6f64f906d368a1
Contents?: true
Size: 525 Bytes
Versions: 1
Compression:
Stored size: 525 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe TTY::Table::Operation::Wrapped, '#wrap' do let(:instance) { described_class.new [] } let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' } subject { instance.wrap(text, width) } context 'without wrapping' do let(:width) { 8 } it { should == "ラドクリフ、マラ\nソン五輪代表に1\n万m出場にも含み" } end context 'with wrapping' do let(:width) { 100 } it { should == text } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-0.0.10 | spec/tty/table/operation/wrapped/wrap_spec.rb |