Sha256: 6f3c9152cdcfbc8543de0c8b89e776089e2c27ab8df358618160db2078d59d8e
Contents?: true
Size: 282 Bytes
Versions: 25
Compression:
Stored size: 282 Bytes
Contents
require 'cxxproject' describe String do it 'should remove from start if matching' do s = "abcd" s.remove_from_start('abc').should == 'd' end it 'should not change the string if the start does not match' do "abcd".remove_from_start('z').should == 'abcd' end end
Version data entries
25 entries across 25 versions & 1 rubygems