Sha256: 9ae85781139e0d3c07eb1830c3822fcec966cb05d1f5702494dc507729533aa2
Contents?: true
Size: 335 Bytes
Versions: 5
Compression:
Stored size: 335 Bytes
Contents
# -*- encoding: utf-8 -*- require 'spec_helper' describe TTY::Text, '#truncate' do let(:text) { 'ラドクリフ、マラソン五輪代表に1万m出場にも含み' } let(:length) { 12 } subject { described_class.truncate(text, :length => length) } it { should == "ラドクリフ、マラソン五…" } end # truncate
Version data entries
5 entries across 5 versions & 1 rubygems