Sha256: 56363740828cc4aaa459ea257bf2def213db68e83c9e36d0f56d611df273bee7

Contents?: true

Size: 432 Bytes

Versions: 11

Compression:

Stored size: 432 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '../../spec_helper')

require "cloudist/core_ext/string"

describe "String" do
  it "should support ends_with?" do
    "started!".ends_with?('!').should be_true
    "started!".ends_with?('-').should be_false
  end
  
  it "should support starts_with?" do
    "event-started".starts_with?("event").should be_true
    "event-started".starts_with?("reply").should be_false
  end
  
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cloudist-0.4.4 spec/core_ext/string_spec.rb
cloudist-0.4.3 spec/core_ext/string_spec.rb
cloudist-0.4.2 spec/core_ext/string_spec.rb
cloudist-0.4.1 spec/core_ext/string_spec.rb
cloudist-0.2.1 spec/core_ext/string_spec.rb
cloudist-0.2.0 spec/core_ext/string_spec.rb
cloudist-0.1.2 spec/core_ext/string_spec.rb
cloudist-0.1.1 spec/core_ext/string_spec.rb
cloudist-0.1.0 spec/core_ext/string_spec.rb
cloudist-0.0.3 spec/core_ext/string_spec.rb
cloudist-0.0.2 spec/core_ext/string_spec.rb