From 44512a5dff571410fb09df03a46df0f60c79f219 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Sat, 28 Dec 2013 00:40:25 +0000 Subject: [PATCH] New feature: create a failing refund This is currently not working. #459 is tracking it. --- features/refunds.feature | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/features/refunds.feature b/features/refunds.feature index b95b6ba..0c42036 100644 --- a/features/refunds.feature +++ b/features/refunds.feature @@ -8,6 +8,20 @@ Feature: Refunds Then I should get a 201 Created status code And the response is valid according to the "refunds" schema + @failing @gh-459 + Scenario: Create a failed refund + Given I have tokenized a customer card + And I have debited that card + + When I make a POST request to the link "debits.refunds" with the body: + """ + { + "amount": 200000000 + } + """ + Then I should get a 400 status code + And the response is valid according to the "errors" schema + Scenario: Refund after changed source Given I have created a debit When I change the default funding source