Sha256: 6e5cb55ecbbe90308f8e3466f5455e22f2bbe361ded92a33f12502fa38ed99b6

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
cloudist-0.5.0 spec/core_ext/string_spec.rb