Sha256: 085bb4826efe422540e0f8d1bfbca9c8671f3c2aae8365325dd10f4ad8fc41a4
Contents?: true
Size: 415 Bytes
Versions: 1
Compression:
Stored size: 415 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' include Rosette::Core describe StringUtils do let(:utils) { Rosette::Core::StringUtils } describe '#camelize' do it 'treats underscores as capitalization boundaries' do expect(utils.camelize('foo_bar')).to eq('FooBar') end it 'treats dashes as capitalization boundaries' do expect(utils.camelize('foo-bar')).to eq('FooBar') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosette-core-1.0.1 | spec/core/string_utils_spec.rb |