Sha256: 11c8e527b890a77aa00f2cb93a284b063e706e91219b17a4fb1c2086f695914a

Contents?: true

Size: 321 Bytes

Versions: 10

Compression:

Stored size: 321 Bytes

Contents

require 'test_helper'

class Alipay::UtilsTest < Test::Unit::TestCase
  def test_stringify_keys
    hash = { 'a' => 1, :b => 2 }
    assert_equal({ 'a' => 1, 'b' => 2 }.sort, Alipay::Utils.stringify_keys(hash).sort)
  end

  def test_generate_batch_no
    assert_equal(24, Alipay::Utils.generate_batch_no.size)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alipay-0.5.0 test/alipay/utils_test.rb
alipay-0.4.1 test/alipay/utils_test.rb
alipay-0.4.0 test/alipay/utils_test.rb
alipay-0.3.1 test/alipay/utils_test.rb
alipay-0.3.0 test/alipay/utils_test.rb
alipay-0.2.0 test/alipay/utils_test.rb
alipay-0.1.0 test/alipay/utils_test.rb
alipay-0.0.5 test/alipay/utils_test.rb
alipay-0.0.4 test/alipay/utils_test.rb
alipay-0.0.3 test/alipay/utils_test.rb