Sha256: 9c043b9c546641085b54a78da5461a00853feda6c971ca1b7f645fd536e92a59
Contents?: true
Size: 393 Bytes
Versions: 14
Compression:
Stored size: 393 Bytes
Contents
describe "String" do describe "starts_with?/ends_with?" do it "should have starts/ends_with? alias" do s = "hello" s.starts_with?('h').should.be.true s.starts_with?('hel').should.be.true s.starts_with?('el').should.be.false s.ends_with?('o').should.be.true s.ends_with?('lo').should.be.true s.ends_with?('el').should.be.false end end end
Version data entries
14 entries across 14 versions & 2 rubygems