Feature: Withdraw cash at the counter
Outlines, and the scenarios their examples produce.
- Given a balance of <balance>
- When <amount> is withdrawn by <who>
- Then the account shows
balance <amount> <left> <none> - And the receipt reads
<format> Withdrawn: <amount>
Runs once for each row of these examples:
-
amount balance left format 10 100 90 text 20 100 80 text - Given a balance of 100
- When 10 is withdrawn by <who>
- Then the account shows
balance 10 90 <none> - And the receipt reads
text Withdrawn: 10
- Given a balance of 100
- When 20 is withdrawn by <who>
- Then the account shows
balance 20 80 <none> - And the receipt reads
text Withdrawn: 20
-
amount balance left format 500 1000 500 json - Given a balance of 1000
- When 500 is withdrawn by <who>
- Then the account shows
balance 500 500 <none> - And the receipt reads
json Withdrawn: 500
-
amount balance left format
- Given <x> and <y>
Runs once for each row of these examples:
-
x y x 1 <x> 3 - Given 1 and <x>
- Given <x>
-
x