Opened from disk

This site is meant to be served, so its folder tree and search do not work when a page is opened from disk. Run ghg serve in the folder of your ghg.toml, or serve the site's folder with any web server, then open the address it gives.

Skip to content
Theme

Feature: Withdraw cash

Customers take money out of their accounts.

From the background:

  1. Given the customer has an account
  1. Given the balance is 100
  2. When the customer withdraws 40
    banknotecount
    202
  3. Then the receipt says
    Dispensed: 40

From the background:

  1. Given the customer has an account
  1. When the customer withdraws <amount>
  2. Then the balance is <balance>

amountbalance
1090

amountbalance
9010

From the background:

  1. Given the customer has an account

From the rule's background:

  1. Given the daily limit is 500
  1. When the customer withdraws 600
  2. Then the withdrawal is refused

From the background:

  1. Given the customer has an account

From the rule's background:

  1. Given the daily limit is 500
  1. When the customer withdraws 500
  2. Then the withdrawal is accepted