Skip to content

Instantly share code, notes, and snippets.

@kgardnr
Forked from anonymous/gist:4820d34e14e6d8cd66e8
Last active August 29, 2015 14:19
Show Gist options
  • Save kgardnr/c806d3a7c653bcd30f18 to your computer and use it in GitHub Desktop.
Save kgardnr/c806d3a7c653bcd30f18 to your computer and use it in GitHub Desktop.
Feature: Payments
Scenario: A plan is created and invoice is issued
When a plan is created for "Company A" for $"12" and "12" seats with default reference "their reference"
Then an unpaid invoice should issued for $"144" with reference "their reference"
And the plan should be inactive
And the plan should be synced to stripe
Scenario: An issue is created and people are notified # what's an "issue" in this case?
When an unpaid invoice is issued
Then an email should be sent to internal users containing a link to the invoice
And an email should be sent to the supervising user of the plan containing a link to the invoice
Scenario: An invoice page is created
Given an unpaid invoice is issued
When the link in the email is clicked
Then a page showing the invoice should be created
Scenario: An invoice is paid and the plan is active
Given an unpaid invoice is issued
When the stripe form is filled out and submitted
Then the plan should become active
And the invoice should be marked paid
And an email should be issued confirming payment
Scenario: A user can pay a single item invoice # not sure about the Given..Then..When here, but I can't think of a better way to put it
Given an unpaid single item invoice is issued and viewed
Then an email should be sent to the supervising user of the plan containing a link to the invoice
When the stripe form is filled out and submitted
Then the invoice should be marked paid
And an email should be issued confirming payment
Scenario: A user can be billed for a single item and a recurring amount
When a plan is created for $"12" and "12" seats and "5" pages of content at $"5"
Then an unpaid invoice is issued for $"169"
And an email should be sent to internal users containing a link to the invoice
And an email should be sent to the supervising user of the plan containing a link to the invoice
Scenario: Ben is a cutie
Given you are cute
When you are cute
Then you are cute
@bxh-io
Copy link

bxh-io commented Apr 24, 2015

You little flirt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment