spec/tty/text/wrap_spec.rb in tty-0.0.11 vs spec/tty/text/wrap_spec.rb in tty-0.1.0

- old
+ new

@@ -1,14 +1,13 @@ -# -*- encoding: utf-8 -*- +# 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出場にも含み" } - + it { is_expected.to eq(" ラドクリフ、マラ\n ソン五輪代表に1\n 万m出場にも含み") } end # wrap