Sha256: e3675a992a4c49fa174594b13bed62d86391cf70a5092da4a344ac5f103cb024
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require "spec_helper" require "cloud_shaped/camelate" describe String, "#camelate" do it "is a no-op" do expect("foobar".camelate).to eq("foobar") end end describe Symbol, "#camelate" do it "returns a CamelCased string" do expect(:foo_bar.camelate).to eq("FooBar") end end describe Hash, "#camelate_keys" do it "camelates the keys" do original_hash = { :foo_bar => 123, "BlahBlah" => 456 } expect(original_hash.camelate_keys).to eq( "FooBar" => 123, "BlahBlah" => 456 ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloud_shaped-1.1.0 | spec/cloud_shaped/camelate_spec.rb |