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: Refunds & <returns>

A refund gives the money back,
in the way it was paid.

The plain case.

From the background:

  1. Given a customer named "Ana"
  1. Given an order with these lines:
    itemprice
    pen1.50
    a | b2
  2. When the order is refunded
  3. Then the card gets
    json
    {"amount": 3.50}
  4. And a note is kept
    
    Refunded in full.
      Indented.

From the background:

  1. Given a customer named "Ana"
  1. Given <count> items
  2. Then the total is <total>

counttotal
12

counttotal

Only store credit.

From the background:

  1. Given a customer named "Ana"

From the rule's background:

  1. Given an order from forty days ago
  1. Then store credit is given

From the background:

  1. Given a customer named "Ana"

From the rule's background:

  1. Given an order from forty days ago
  1. Given <count> refunds

count
2

From the background:

  1. Given a customer named "Ana"
  1. Then it is refused