Sha256: 6c6b90301da7442b290654046cfea2d3920ff31954910d79ac11ea579926d9ad

Contents?: true

Size: 246 Bytes

Versions: 41

Compression:

Stored size: 246 Bytes

Contents

require 'test/helper'

class HashTest < ActiveSupport::TestCase

  def test_should_verify_compact
    hash = { 'a' => '', 'b'=> nil, 'c' => 'hello' }
    hash_compacted = { 'c' => 'hello' }
    assert_equal hash_compacted, hash.compact
  end

end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
fesplugas-typus-0.9.0 test/lib/hash_test.rb
fesplugas-typus-0.9.1 test/lib/hash_test.rb
fesplugas-typus-0.9.10 test/lib/hash_test.rb
fesplugas-typus-0.9.11 test/lib/hash_test.rb
fesplugas-typus-0.9.12 test/lib/hash_test.rb
fesplugas-typus-0.9.13 test/lib/hash_test.rb
fesplugas-typus-0.9.14 test/lib/hash_test.rb
fesplugas-typus-0.9.15 test/lib/hash_test.rb
fesplugas-typus-0.9.16 test/lib/hash_test.rb
fesplugas-typus-0.9.17 test/lib/hash_test.rb
fesplugas-typus-0.9.2 test/lib/hash_test.rb
fesplugas-typus-0.9.3 test/lib/hash_test.rb
fesplugas-typus-0.9.4 test/lib/hash_test.rb
fesplugas-typus-0.9.5 test/lib/hash_test.rb
fesplugas-typus-0.9.6 test/lib/hash_test.rb
fesplugas-typus-0.9.7 test/lib/hash_test.rb
fesplugas-typus-0.9.8 test/lib/hash_test.rb
fesplugas-typus-0.9.9 test/lib/hash_test.rb
typus-0.9.39 test/lib/hash_test.rb
typus-0.9.38 test/lib/hash_test.rb