Sha256: 12ae05af3bf074b963ea461bcbaf13e1ec679a4faca9612f8adef16363ea1529

Contents?: true

Size: 313 Bytes

Versions: 8

Compression:

Stored size: 313 Bytes

Contents

require "test_helper"

class ArrayTest < ActiveSupport::TestCase

  should "verify Array#to_hash_with" do
    keys, values = %w(a b c), %w(1 2 3)
    expected = { "a" => "1", "b" => "2", "c" => "3" }

    hash = keys.to_hash_with(values)

    assert hash.kind_of?(Hash)
    assert_equal expected, hash
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-1.0.0.pre8 test/lib/support/array_test.rb
typus-1.0.0.pre7 test/lib/support/array_test.rb
typus-1.0.0.pre6 test/lib/support/array_test.rb
typus-1.0.0.pre5 test/lib/support/array_test.rb
typus-1.0.0.pre4 test/lib/support/array_test.rb
typus-1.0.0.pre3 test/lib/support/array_test.rb
typus-1.0.0.pre2 test/lib/support/array_test.rb
typus-1.0.0.pre test/lib/support/array_test.rb