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

Version Path
bluemark-smallcage-0.1.3 spec/misc_spec.rb
bluemark-smallcage-0.1.4 spec/misc_spec.rb
bluemark-smallcage-0.1.5 spec/misc_spec.rb
smallcage-0.2.2 spec/misc_spec.rb
smallcage-0.2.1 spec/misc_spec.rb
smallcage-0.2.0 spec/misc_spec.rb
smallcage-0.1.9 spec/misc_spec.rb
smallcage-0.1.8 spec/misc_spec.rb
smallcage-0.1.7 spec/misc_spec.rb
smallcage-0.1.6 spec/misc_spec.rb
smallcage-0.1.5 spec/misc_spec.rb
smallcage-0.1.4 spec/misc_spec.rb
smallcage-0.1.2 spec/misc_spec.rb
smallcage-0.1.0 spec/misc_spec.rb
smallcage-0.0.9 spec/misc_spec.rb
smallcage-0.0.8 spec/misc_spec.rb
smallcage-0.1.1 spec/misc_spec.rb
smallcage-0.1.3 spec/misc_spec.rb