Sha256: 97ae3979b485ef93fd46e15a43a8638bb03d4901b254af5458730ea593fcf297
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper' require 'bioinform/support/multiline_squish' describe String do describe '#multiline_squish' do it 'should replace multiple spaces with one space' do "abc def ghi\n jk lmn".multiline_squish.should == "abc def ghi\njk lmn" end it 'should replace tabs with a space' do "abc\tdef ghi \t jk".multiline_squish.should == 'abc def ghi jk' end it 'should replace \r\n with \n' do "abc def ghi\r\njk lmn".multiline_squish.should == "abc def ghi\njk lmn" end it 'should preserve rows pagination' do "abc def ghi\njk lmn".multiline_squish.should == "abc def ghi\njk lmn" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bioinform-0.1.4 | spec/support/multiline_squish_spec.rb |