Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git] / spec / unit / string_spec.rb
diff --git a/spec/unit/string_spec.rb b/spec/unit/string_spec.rb
new file mode 100755 (executable)
index 0000000..fce7ef6
--- /dev/null
@@ -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