Sha256: 5c7af785522bd1180e3343d2c08860221976c2a308150a85373a17e0abdf88d6
Contents?: true
Size: 455 Bytes
Versions: 8
Compression:
Stored size: 455 Bytes
Contents
require 'spec_helper.rb' require 'smallcage' describe 'misc' do it 'returns empty string' do expect(''.camelize).to eq '' end it 'camelize String' do expect('smallcage'.camelize).to eq 'Smallcage' expect('abc_def_ghi'.camelize).to eq 'AbcDefGhi' end it 'camelize with first character in lower case' do expect('smallcage'.camelize(false)).to eq 'smallcage' expect('abc_def_ghi'.camelize(false)).to eq 'abcDefGhi' end end
Version data entries
8 entries across 8 versions & 1 rubygems