test/alipay/wap/sign_test.rb in alipay-0.6.0.beta2 vs test/alipay/wap/sign_test.rb in alipay-0.6.0.beta3

- old
+ new

@@ -10,8 +10,10 @@ } @sign = Digest::MD5.hexdigest("service=test&v=1.0&sec_id=MD5&notify_data=notify_data#{Alipay.key}") end def test_verify_sign + assert !Alipay::Wap::Sign.verify?(@params) + assert !Alipay::Wap::Sign.verify?(@params.merge(:sec_id => 'unknow')) assert Alipay::Wap::Sign.verify?(@params.merge(:sign => @sign, :whatever => 'x')) end end