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

Version Path
motion-support-1.2.1 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-1.1.1 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-1.2.0 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-1.1.0 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-1.0.0 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-0.3.0 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion_blender-support-0.2.8 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion_blender-support-0.2.7 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-0.2.6 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-0.2.5 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-0.2.4 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-0.2.3 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-0.2.2 spec/motion-support/core_ext/string/starts_end_with_spec.rb
motion-support-0.2.0 spec/motion-support/core_ext/string/starts_end_with_spec.rb