test/alipay/utils_test.rb in alipay-0.0.2 vs test/alipay/utils_test.rb in alipay-0.0.3
- old
+ new
@@ -3,6 +3,10 @@
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