Sha256: fd21c0f4bb9663e588a98d0185028979b5f02ffb0b983444e594bc0d561c96bd
Contents?: true
Size: 522 Bytes
Versions: 5
Compression:
Stored size: 522 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
5 entries across 5 versions & 1 rubygems