Sha256: ba52ecf4aa8e732b854c5ef3677f33daff3a44d95b629886ef161ca91b3bb9e3

Contents?: true

Size: 258 Bytes

Versions: 8

Compression:

Stored size: 258 Bytes

Contents

require "test_helper"

class ArrayTest < ActiveSupport::TestCase

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

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-3.0.2 test/lib/support/array_test.rb
typus-3.0.1 test/lib/support/array_test.rb
typus-3.0.0 test/lib/support/array_test.rb
typus-1.0.0.pre13 test/lib/support/array_test.rb
typus-1.0.0.pre12 test/lib/support/array_test.rb
typus-1.0.0.pre11 test/lib/support/array_test.rb
typus-1.0.0.pre10 test/lib/support/array_test.rb
typus-1.0.0.pre9 test/lib/support/array_test.rb