X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Funit%2Fstring_spec.rb;fp=spec%2Funit%2Fstring_spec.rb;h=fce7ef69c8eed0ad91ccd81cf4e212ff4cc5278c;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/spec/unit/string_spec.rb b/spec/unit/string_spec.rb new file mode 100755 index 0000000..fce7ef6 --- /dev/null +++ b/spec/unit/string_spec.rb @@ -0,0 +1,15 @@ +#!/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