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.9.1 spec/unit/mcollective/string_spec.rb
mcollective-client-2.9.0 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.9 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.4 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.3 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.2 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.1 spec/unit/mcollective/string_spec.rb
mcollective-client-2.8.0 spec/unit/mcollective/string_spec.rb
mcollective-client-2.7.0 spec/unit/string_spec.rb
mcollective-client-2.6.1 spec/unit/string_spec.rb
mcollective-client-2.6.0 spec/unit/string_spec.rb
mcollective-client-2.5.3 spec/unit/string_spec.rb
mcollective-client-2.5.2 spec/unit/string_spec.rb
mcollective-client-2.5.1 spec/unit/string_spec.rb
mcollective-client-2.5.0 spec/unit/string_spec.rb
mcollective-client-2.5.0.rc1 spec/unit/string_spec.rb
mcollective-client-2.4.1 spec/unit/string_spec.rb
mcollective-client-2.4.0 spec/unit/string_spec.rb
mcollective-client-2.2.4 spec/unit/string_spec.rb
mcollective-client-2.2.3 spec/unit/string_spec.rb