Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed a test

  • Loading branch information...
commit f85de1d3c86801f0aa75071b59b383b20c9ec3a1 1 parent aedb90a
@mreinsch mreinsch authored
View
2  test/data/valid_parallel_pay_request.json
@@ -9,6 +9,6 @@
]},
"cancelUrl":"http://127.0.0.1:3000/payments/canceled_payment_request",
"actionType":"PAY",
- "senderEmail": "a@a.com"
+ "senderEmail": "a@test.com"
}
View
2  test/unit/pay_request_test.rb
@@ -64,7 +64,7 @@ def read_json_file(filename)
MINI_APPROVE_URL_PATTERN = %r{^https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay\?expType=mini&paykey=AP-}
def assert_success_response(pp_response)
- assert_equal true, pp_response.success?
+ assert_equal true, pp_response.success?, "expected success: #{pp_response.inspect}"
assert_match APPROVE_URL_PATTERN, pp_response.approve_paypal_payment_url
assert_match APPROVE_URL_PATTERN_JP, pp_response.approve_paypal_payment_url(:country => :jp)
assert_match MINI_APPROVE_URL_PATTERN, pp_response.approve_paypal_payment_url('mini')
Please sign in to comment.
Something went wrong with that request. Please try again.