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.12.5 spec/unit/mcollective/string_spec.rb
mcollective-client-2.12.4 spec/unit/mcollective/string_spec.rb
mcollective-client-2.12.3 spec/unit/mcollective/string_spec.rb
mcollective-client-2.12.1 spec/unit/mcollective/string_spec.rb
mcollective-client-2.12.0 spec/unit/mcollective/string_spec.rb
mcollective-client-2.10.6 spec/unit/mcollective/string_spec.rb
mcollective-client-2.11.4 spec/unit/mcollective/string_spec.rb
mcollective-client-2.11.3 spec/unit/mcollective/string_spec.rb
mcollective-client-2.11.2 spec/unit/mcollective/string_spec.rb
mcollective-client-2.11.1 spec/unit/mcollective/string_spec.rb
mcollective-client-2.11.0 spec/unit/mcollective/string_spec.rb
mcollective-client-2.10.4 spec/unit/mcollective/string_spec.rb
mcollective-client-2.10.3 spec/unit/mcollective/string_spec.rb
mcollective-client-2.10.2 spec/unit/mcollective/string_spec.rb
mcollective-client-2.10.1 spec/unit/mcollective/string_spec.rb
mcollective-client-2.10.0 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.7 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.5 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.8 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.6 spec/unit/mcollective/string_spec.rb