Sha256: 1cd37b77822fd3740cda5c9a28b193ddd60330d5ef139d93c1e95c5f4942539e
Contents?: true
Size: 552 Bytes
Versions: 7
Compression:
Stored size: 552 Bytes
Contents
require 'spec/spec_helper' require 'extensions/string' describe "string extensions" do it "should pluralize and to sym a string" do "apple".pluralize_to_sym.should eql(:apples) end it "should computerize a string with a space" do "count down".computerize.should == "count_down" end it "should computerize a string that is capitalized" do "Count Down".computerize.should == "count_down" end it "should computerize a string that is in CamelCase" do "CountDown".computerize.should == "count_down" end end
Version data entries
7 entries across 7 versions & 1 rubygems