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>
| amount | balance | left | format |
| 10 | 100 | 90 | text |
| 20 | 100 | 80 | text |
| amount | balance | left | format |
| 500 | 1000 | 500 | json |
- Given a balance of 100
- When 10 is withdrawn by <who>
- Then the account shows
- And the receipt reads
text
Withdrawn: 10
- Given a balance of 100
- When 20 is withdrawn by <who>
- Then the account shows
- And the receipt reads
text
Withdrawn: 20
- Given a balance of 1000
- When 500 is withdrawn by <who>
- Then the account shows
- And the receipt reads
json
Withdrawn: 500
- Given <x> and <y>