Sha256: 16045facc1e57a30d2e7007c32800cd2692318332148ffd4374ddd9871450d1e

Contents?: true

Size: 293 Bytes

Versions: 18

Compression:

Stored size: 293 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

18 entries across 18 versions & 1 rubygems

Version Path
cxxproject-0.5.76 spec/string_spec.rb
cxxproject-0.5.75 spec/string_spec.rb
cxxproject-0.5.74 spec/string_spec.rb
cxxproject-0.5.73 spec/string_spec.rb
cxxproject-0.5.72 spec/string_spec.rb
cxxproject-0.5.71 spec/string_spec.rb
cxxproject-0.5.70 spec/string_spec.rb
cxxproject-0.5.69 spec/string_spec.rb
cxxproject-0.5.68 spec/string_spec.rb
cxxproject-0.5.67 spec/string_spec.rb
cxxproject-0.5.66 spec/string_spec.rb
cxxproject-0.5.65 spec/string_spec.rb
cxxproject-0.5.64 spec/string_spec.rb
cxxproject-0.5.63 spec/string_spec.rb
cxxproject-0.5.62 spec/string_spec.rb
cxxproject-0.5.61 spec/string_spec.rb
cxxproject-0.5.60 spec/string_spec.rb
cxxproject-0.5.59 spec/string_spec.rb