Sha256: e5ae5b179312055abea2fcc14beb6260bb3836d04b0f02e84e8bd25c122278f3
Contents?: true
Size: 501 Bytes
Versions: 18
Compression:
Stored size: 501 Bytes
Contents
require File.dirname(__FILE__) + '/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
18 entries across 18 versions & 2 rubygems