]> review.fuel-infra Code Review - packages/trusty/mcollective.git/blob - spec/unit/string_spec.rb
Added mcollective 2.3.1 package
[packages/trusty/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