From 1627bab78d60297a717adf082792129ed1ce139a Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Sat, 21 Dec 2013 01:44:36 +0000 Subject: [PATCH] New feature: debit a customer card --- features/debits.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/features/debits.feature b/features/debits.feature index 22ff610..688ce57 100644 --- a/features/debits.feature +++ b/features/debits.feature @@ -9,3 +9,11 @@ Feature: Debit cards Then I should get a 201 Created status code And the response is valid according to the "debits" schema + Scenario: Debit a card + Given I have tokenized a customer card + When I make a POST request to the link "cards.debits" with the body: + """ + { "amount": 2000 } + """ + Then I should get a 201 Created status code + And the response is valid according to the "debits" schema