Sha256: 1be63bfe5ef71b00358e0137878c0b3af8497d7716db34e67239b8da31f2b214
Contents?: true
Size: 515 Bytes
Versions: 26
Compression:
Stored size: 515 Bytes
Contents
require 'spec_helper' describe 'String#squish' do it 'strips leading and trailing whitespace' do expect(' Peter '.squish).to eq('Peter') end it 'compacts internal whitespace' do expect("Peter\r\n \t Parker".squish).to eq('Peter Parker') end end describe 'String#squish!' do it 'strips leading and trailing whitespace' do expect(' Peter '.squish!).to eq('Peter') end it 'compacts internal whitespace' do expect("Peter\r\n \t Parker".squish!).to eq('Peter Parker') end end
Version data entries
26 entries across 23 versions & 6 rubygems