Sha256: 30a5da67b90a1d5b6dacde532d1191eb14b5ecdb262ac8441edc44a197c766cd
Contents?: true
Size: 462 Bytes
Versions: 4
Compression:
Stored size: 462 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Lita::Util do describe ".stringify_keys" do it "converts symbol hash keys to strings" do stringified = described_class.stringify_keys(foo: "bar") expect(stringified).to eq("foo" => "bar") end end describe ".underscore" do it "converts camel cased strings into snake case" do expect(described_class.underscore("FooBarBaz")).to eq("foo_bar_baz") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rita-5.0.0.alpha.4 | spec/lita/util_spec.rb |
rita-5.0.0.alpha.3 | spec/lita/util_spec.rb |
rita-5.0.0.alpha.2 | spec/lita/util_spec.rb |
rita-5.0.0.alpha.1 | spec/lita/util_spec.rb |