Sha256: 1288a8515f2f733bb535ce86ff807cddcc39cb9a7de9d9732296c11748129698
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 Bytes
Contents
require 'test_helper' class Alipay::Sign::WapTest < Minitest::Test def setup @params = { :v => '1.0', :sec_id => 'MD5', :service => 'test', :notify_data => 'notify_data' } @sign = Digest::MD5.hexdigest("service=test&v=1.0&sec_id=MD5¬ify_data=notify_data#{Alipay.key}") end def test_verify_sign assert Alipay::Sign::Wap.verify?(@params.merge(:sign => @sign, :whatever => 'x')) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alipay-0.6.0.beta1 | test/alipay/sign/wap_test.rb |