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

Version Path
cxxproject-0.6.29 spec/string_spec.rb
cxxproject-0.6.28 spec/string_spec.rb
cxxproject-0.6.27 spec/string_spec.rb
cxxproject-0.6.26 spec/string_spec.rb
cxxproject-0.6.25 spec/string_spec.rb
cxxproject-0.6.24 spec/string_spec.rb
cxxproject-0.6.23 spec/string_spec.rb
cxxproject-0.6.21 spec/string_spec.rb
cxxproject-0.6.18 spec/string_spec.rb
cxxproject-0.6.17 spec/string_spec.rb
cxxproject-0.6.14 spec/string_spec.rb
cxxproject-0.6.12 spec/string_spec.rb
cxxproject-0.6.13 spec/string_spec.rb
cxxproject-0.6.11 spec/string_spec.rb
cxxproject-0.6.10 spec/string_spec.rb
cxxproject-0.6.9 spec/string_spec.rb
cxxproject-0.6.6 spec/string_spec.rb
cxxproject-0.6.5 spec/string_spec.rb
cxxproject-0.6.4 spec/string_spec.rb
cxxproject-0.6.2 spec/string_spec.rb