Sha256: 9c7771c4d2aefc018e5dffdf3cf2e52a411306697ef1edef5c62412f326aeaff
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
require 'spec/helper' describe "String#camel_case" do it 'should camelize snake_case' do 'foo_bar'.camel_case.should == 'FooBar' end it 'should camelize snake_case_long' do 'foo_bar_baz'.camel_case.should == 'FooBarBaz' end it 'should ignore starting _' do '_foo_bar_baz'.camel_case.should == 'FooBarBaz' end it 'should ignore trailing _' do 'foo_bar_baz_'.camel_case.should == 'FooBarBaz' end it 'messes up existing CamelCase' do 'foo_barBaz'.camel_case.should == 'FooBarbaz' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.4 | spec/snippets/string/camel_case.rb |
ramaze-0.2.1 | spec/snippets/string/camel_case.rb |
ramaze-0.2.0 | spec/snippets/string/camel_case.rb |