fce7ef69c8eed0ad91ccd81cf4e212ff4cc5278c
[packages/precise/mcollective.git] / spec / unit / string_spec.rb
1 #!/usr/bin/env rspec
2
3 require 'spec_helper'
4
5 class String
6   describe "#start_with?" do
7     it "should return true for matches" do
8       "hello world".start_with?("hello").should == true
9     end
10
11     it "should return false for non matches" do
12       "hello world".start_with?("world").should == false
13     end
14   end
15 end