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.

  1. Given the customer has an account

From the scenario

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

  1. Given the customer has an account

From the scenario

  1. When the customer withdraws <amount>
  2. Then the balance is <balance>

Runs once for each row of these examples:

  1. Given the customer has an account

  1. Given the daily limit is 500

From the scenario

  1. When the customer withdraws 600
  2. Then the withdrawal is refused

  1. Given the customer has an account

  1. Given the daily limit is 500

From the scenario

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