Sha256: 2349cfa27c819bfd3f38dc47df8fbb7d538b8eea8d462198824a05b6a8dd600f

Contents?: true

Size: 249 Bytes

Versions: 16

Compression:

Stored size: 249 Bytes

Contents

require "test_helper"

class HashTest < ActiveSupport::TestCase

  should "verify Hash#compact" do
    hash = { "a" => "", "b" => nil, "c" => "hello" }
    hash_compacted = { "c" => "hello" }
    assert_equal hash_compacted, hash.compact
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
typus-3.0.2 test/lib/support/hash_test.rb
typus-3.0.1 test/lib/support/hash_test.rb
typus-3.0.0 test/lib/support/hash_test.rb
typus-1.0.0.pre13 test/lib/support/hash_test.rb
typus-1.0.0.pre12 test/lib/support/hash_test.rb
typus-1.0.0.pre11 test/lib/support/hash_test.rb
typus-1.0.0.pre10 test/lib/support/hash_test.rb
typus-1.0.0.pre9 test/lib/support/hash_test.rb
typus-1.0.0.pre8 test/lib/support/hash_test.rb
typus-1.0.0.pre7 test/lib/support/hash_test.rb
typus-1.0.0.pre6 test/lib/support/hash_test.rb
typus-1.0.0.pre5 test/lib/support/hash_test.rb
typus-1.0.0.pre4 test/lib/support/hash_test.rb
typus-1.0.0.pre3 test/lib/support/hash_test.rb
typus-1.0.0.pre2 test/lib/support/hash_test.rb
typus-1.0.0.pre test/lib/support/hash_test.rb