Sha256: b0ccd2f5188a192760ddfad095a526df20aa5dc9b5fde9b0241a72f819beeb86

Contents?: true

Size: 315 Bytes

Versions: 15

Compression:

Stored size: 315 Bytes

Contents

require 'test_helper'

class Alipay::UtilsTest < Minitest::Test
  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

15 entries across 15 versions & 2 rubygems

Version Path
yl_alipay-0.15.3 test/alipay/utils_test.rb
yl_alipay-0.15.2 test/alipay/utils_test.rb
alipay-0.14.0 test/alipay/utils_test.rb
alipay-0.13.0 test/alipay/utils_test.rb
alipay-0.12.0 test/alipay/utils_test.rb
alipay-0.11.0 test/alipay/utils_test.rb
alipay-0.10.0 test/alipay/utils_test.rb
alipay-0.9.0 test/alipay/utils_test.rb
alipay-0.8.0 test/alipay/utils_test.rb
alipay-0.7.1 test/alipay/utils_test.rb
alipay-0.7.0 test/alipay/utils_test.rb
alipay-0.6.0 test/alipay/utils_test.rb
alipay-0.6.0.beta3 test/alipay/utils_test.rb
alipay-0.6.0.beta2 test/alipay/utils_test.rb
alipay-0.6.0.beta1 test/alipay/utils_test.rb