Sha256: a13c64c3dcc890c543c0e7a6845ec9ce1428d40e00d2988eeeaf4dc95bafd5df
Contents?: true
Size: 410 Bytes
Versions: 5
Compression:
Stored size: 410 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe TTY::Text, '#wrap' do let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' } let(:length) { 8 } let(:indent) { 4 } subject { described_class.wrap(text, :length => length, :indent => indent) } it { should == " ラドクリフ、マラ\n ソン五輪代表に1\n 万m出場にも含み" } end # wrap
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
tty-0.0.11 | spec/tty/text/wrap_spec.rb |
tty-0.0.10 | spec/tty/text/wrap_spec.rb |
tty-0.0.9 | spec/tty/text/wrap_spec.rb |
tty-0.0.8 | spec/tty/text/wrap_spec.rb |
tty-0.0.7 | spec/tty/text/wrap_spec.rb |