Sha256: c4e5bf87afa07117b9eabfb27ff8992eb6b8797ed63039635fcdecfe6ae80271
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' describe Sparrow::Strategies::CamelizeKey do subject { Sparrow::Strategies::CamelizeKey.new } describe '#transform_key' do it 'should camelize it´s inputs (defaulting to lower case camelizing)' do output = subject.transform_key("wireless_configuration") expect(output).to eq("wirelessConfiguration") end it 'should leave all_uppercase strings as they are' do output = subject.transform_key("DE") expect(output).to eq("DE") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cp-sparrow-0.0.12 | spec/unit/camelize_key_spec.rb |
cp-sparrow-0.0.11 | spec/unit/camelize_key_spec.rb |