Sha256: fab38b06166c9095cc52986e422434701fd750cc84ffa41439e6ee77eb971420

Contents?: true

Size: 318 Bytes

Versions: 43

Compression:

Stored size: 318 Bytes

Contents

#!/usr/bin/env rspec

require 'spec_helper'

class String
  describe "#start_with?" do
    it "should return true for matches" do
      "hello world".start_with?("hello").should == true
    end

    it "should return false for non matches" do
      "hello world".start_with?("world").should == false
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
mcollective-client-2.2.2 spec/unit/string_spec.rb
mcollective-client-2.2.1 spec/unit/string_spec.rb
mcollective-client-2.2.0 spec/unit/string_spec.rb