Sha256: 0e078aad634addf8dfdcc656cdc5463c83387cfe4510554a2b09664cfeceb97a

Contents?: true

Size: 386 Bytes

Versions: 25

Compression:

Stored size: 386 Bytes

Contents

describe Kumogata::Utils do
  it 'should stringify the hash' do
    hash = {
      :foo => {
        'bar' => ['1', 2, 3],
        'zoo' => :value,
      },
      12 => :value2
    }

    expect(Kumogata::Utils.stringify(hash)).to eq(
      {
        'foo' => {
          'bar' => ['1', '2', '3'],
          'zoo' => 'value',
        },
        '12' => 'value2'
      }
    )
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
kumogata-0.5.12 spec/kumogata_utils_spec.rb
kumogata-0.5.11 spec/kumogata_utils_spec.rb
kumogata-0.5.10 spec/kumogata_utils_spec.rb
kumogata-0.5.9 spec/kumogata_utils_spec.rb
kumogata-0.5.8 spec/kumogata_utils_spec.rb
kumogata-0.5.7 spec/kumogata_utils_spec.rb
kumogata-0.5.6 spec/kumogata_utils_spec.rb
kumogata-0.5.5 spec/kumogata_utils_spec.rb
kumogata-0.5.4 spec/kumogata_utils_spec.rb
kumogata-0.5.3 spec/kumogata_utils_spec.rb
kumogata-0.5.2 spec/kumogata_utils_spec.rb
kumogata-0.5.2.beta2 spec/kumogata_utils_spec.rb
kumogata-0.5.2.beta spec/kumogata_utils_spec.rb
kumogata-0.5.1 spec/kumogata_utils_spec.rb
kumogata-0.5.0 spec/kumogata_utils_spec.rb
kumogata-0.4.19 spec/kumogata_utils_spec.rb
kumogata-0.4.18 spec/kumogata_utils_spec.rb
kumogata-0.4.17 spec/kumogata_utils_spec.rb
kumogata-0.4.16 spec/kumogata_utils_spec.rb
kumogata-0.4.15 spec/kumogata_utils_spec.rb