Sha256: 60bae7d7903e9535bf2c2404141a8b5a5149ce26c8aa46b39b3942b924811d87
Contents?: true
Size: 400 Bytes
Versions: 19
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' describe Rgentpl::CoreExt do let(:str) { String.new('My custom string') } let(:result) { 'MyCustomString' } describe '.camelize' do it 'format according to camelize rules' do expect(str.camelize).to eq result end end describe '.camelize!' do it 'persists result into variable' do expect { str.camelize! }.to change { str } end end end
Version data entries
19 entries across 19 versions & 1 rubygems