Sha256: 7aabb7db79b642ff4960ec7f04a88f465c4f2aaf4dd9bb2525012d1640275104
Contents?: true
Size: 515 Bytes
Versions: 5
Compression:
Stored size: 515 Bytes
Contents
require "spec_helper" describe Aitch::Utils do describe ".underscore" do it "replaces capital letters by underscores" do expect(Aitch::Utils.underscore("SomeConstantName")).to eql("some_constant_name") end it "considers URI acronym" do expect(Aitch::Utils.underscore("RequestURITooLong")).to eql("request_uri_too_long") end end describe ".symbolize_keys" do it "converts keys to symbols" do expect(Aitch::Utils.symbolize_keys("a" => 1)).to eql(a: 1) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
aitch-0.4.1 | spec/aitch/utils_spec.rb |
aitch-0.4.0 | spec/aitch/utils_spec.rb |
aitch-0.3.0 | spec/aitch/utils_spec.rb |
aitch-0.2.1 | spec/aitch/utils_spec.rb |
aitch-0.2.0 | spec/aitch/utils_spec.rb |