Sha256: 7aeb4559e85523bf9fce5fff90eea2b30decec2bc532d837ae629918e2ef6d31
Contents?: true
Size: 485 Bytes
Versions: 3
Compression:
Stored size: 485 Bytes
Contents
RSpec.describe TTY::Config, '#normalize_hash' do it "normalizes keys via method to symbols" do hash = { "settings" => { "base" => "USD", "color" => true, "exchange" => "CCCAGG" }, "coins" => ["BTC", "ETH", "TRX", "DASH"] } expect(TTY::Config.normalize_hash(hash)).to eq({ settings: { base: "USD", color: true, exchange: "CCCAGG" }, coins: ["BTC", "ETH", "TRX", "DASH"] }) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tty-config-0.3.2 | spec/unit/normalize_hash_spec.rb |
tty-config-0.3.1 | spec/unit/normalize_hash_spec.rb |
tty-config-0.3.0 | spec/unit/normalize_hash_spec.rb |