Sha256: c326fdc654df7494d7c4594cb104d9f99c7f068162addecd489f78e70539c293
Contents?: true
Size: 554 Bytes
Versions: 3
Compression:
Stored size: 554 Bytes
Contents
require 'spec_helper' describe Direct::API::V5::Refinements::Camelize do using described_class describe 'String#camelize' do it 'camelize string' do expect('consider_working_weekends'.camelize).to eq('ConsiderWorkingWeekends') end it 'return self if already camelized' do expect('ConsiderWorkingWeekends'.camelize).to eq('ConsiderWorkingWeekends') end end describe 'Symbol#camelize' do it 'camelize symbol' do expect(:consider_working_weekends.camelize).to eq(:ConsiderWorkingWeekends) end end end
Version data entries
3 entries across 3 versions & 1 rubygems