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

- old
+ new

@@ -21,9 +21,10 @@ assert Alipay::Sign.verify?(@params.merge(:sign_type => 'MD5', :sign => @md5_sign)) assert Alipay::Sign.verify?(@params.merge(:sign_type => 'MD5', :sign => @md5_sign_2), {:key => @key_2}) end def test_verify_fail_when_sign_not_true + assert !Alipay::Sign.verify?(@params) assert !Alipay::Sign.verify?(@params.merge(:danger => 'danger', :sign_type => 'MD5', :sign => @md5_sign)) assert !Alipay::Sign.verify?(@params.merge(:sign_type => 'MD5', :sign => 'danger')) end end