Sha256: 3e2b73b04d4f4efd5d8b8781bae8063fba1d6f3a01e2d4ce13882571a045713f

Contents?: true

Size: 464 Bytes

Versions: 10

Compression:

Stored size: 464 Bytes

Contents

input_hash = {
  :name => 'test-server',
  :flavor => '123'
}

output_hash = {
  'name' => 'test-server',
  'flavor' => '123'
}

Shindo.tests('Fog::StringifyKeys', 'core') do

  tests('keys') do

    tests('stringifies symbols') do
      returns(output_hash) {
        Fog::StringifyKeys.stringify(input_hash)
      }
    end

    tests('skips strings') do
      returns(output_hash) {
        Fog::StringifyKeys.stringify(output_hash)
      }
    end

  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-core-1.29.0 tests/core/stringify_keys_tests.rb
fog-core-1.28.0 tests/core/stringify_keys_tests.rb
fog-core-1.27.4 tests/core/stringify_keys_tests.rb
fog-core-1.27.3 tests/core/stringify_keys_tests.rb
fog-core-1.27.2 tests/core/stringify_keys_tests.rb
fog-core-1.27.1 tests/core/stringify_keys_tests.rb
fog-core-1.27.0 tests/core/stringify_keys_tests.rb
fog-core-1.25.0 tests/core/stringify_keys_tests.rb
fog-core-1.24.0 tests/core/stringify_keys_tests.rb
fog-core-1.23.0 tests/core/stringify_keys_tests.rb