Sha256: 35217c7278ff54a97c130e6c71e460633f9d716055f5b35b4b1d745a1b986313

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

covers 'facets/hash/stringify_keys'

testcase Hash do

  unit :stringify_keys do
    foo = { :a=>1, :b=>2 }
    foo.stringify_keys.assert == { "a"=>1, "b"=>2 }
    foo.assert == { :a =>1, :b=>2 }
  end

  unit :stringify_keys! do
    foo = { :a=>1, :b=>2 }
    foo.stringify_keys!.assert == { "a"=>1, "b"=>2 }
    foo.assert == { "a"=>1, "b"=>2 }
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/hash/test_stringify_keys.rb
facets-2.9.0 test/core/hash/test_stringify_keys.rb
facets-2.9.0.pre.2 test/core/hash/test_stringify_keys.rb
facets-2.9.0.pre.1 test/core/hash/test_stringify_keys.rb