Sha256: aeed52deba864292fed848ba65e190b55bd00887979c9b69fccdb05b992fc21b
Contents?: true
Size: 476 Bytes
Versions: 2
Compression:
Stored size: 476 Bytes
Contents
require 'spec_helper.rb' require 'smallcage' describe "misc" do it "should camelize String" do s = "smallcage" s.camelize.should == "Smallcage" s = "abc_def_ghi" s.camelize.should == "AbcDefGhi" s = "" s.camelize.should == "" end it "should camelize with first character in lower case" do s = "smallcage" s.camelize(false).should == "smallcage" s = "abc_def_ghi" s.camelize(false).should == "abcDefGhi" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smallcage-0.2.4 | spec/misc_spec.rb |
smallcage-0.2.3 | spec/misc_spec.rb |