Permalink
Browse files

fixed a test

  • Loading branch information...
mreinsch committed Dec 17, 2012
1 parent aedb90a commit f85de1d3c86801f0aa75071b59b383b20c9ec3a1
Showing with 2 additions and 2 deletions.
  1. +1 −1 test/data/valid_parallel_pay_request.json
  2. +1 −1 test/unit/pay_request_test.rb
@@ -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"
}
@@ -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')

0 comments on commit f85de1d

Please sign in to comment.