Skip to content

Instantly share code, notes, and snippets.

@lawrencebrown
Created December 12, 2011 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawrencebrown/1467797 to your computer and use it in GitHub Desktop.
Save lawrencebrown/1467797 to your computer and use it in GitHub Desktop.
LIFE feature: Complimentary
Feature: Promo Codes
In order to allow certain people or organisations to purchase LIFE membership
As Josh the Business Development Director
I want the ability to create promo codes
@josh
Scenario: Josh creates a promo code
When I create a new promo code
Then I should be able to define the code phrase
And I should be able to define how many times it can be used
@john_from_bloomberg
Scenario: John applies using a promo code
Given I know the LIFExBLOOMBERG promo code
When I visit the LIFE application page
And I fill in my details with the promo code
Then I should be taken directly to the checkout page
@john_from_bloomberg
Scenario: John pays for his LIFE membership
When I complete the checkout process
Then I should be told my account will be activated soon
@josh
Scenario: Josh activates John's account
Given I have received notification of John's payment
When I activate John's account
Then a welcome email should be sent to John
@john_from_bloomberg
Scenario: John receives a welcome email
Given I have received a welcome email
When I follow the link
Then I am shown the welcome page
@john_from_bloomberg
Scenario: John creates his password and enters LIFE
Given I have received a welcome email
When I follow the link
And I create my password
Then I am shown the LIFE home page
Feature: Promo Codes
In order to allow certain people or organisations to purchase LIFE membership
As Josh the Business Development Director
I want the ability to create promo codes
@josh
Scenario: Josh creates a promo code
When I create a new promo code
Then I should be able to define the code phrase
And I should be able to define how many times it can be used
@john_from_bloomberg
Scenario: John applies using a promo code
Given I know the LIFExBLOOMBERG promo code
When I visit the LIFE application page
And I fill in my details with the promo code
Then I should be taken directly to the checkout page
@john_from_bloomberg
Scenario: John pays for his LIFE membership
When I complete the checkout process
Then I should be told my account will be activated soon
@josh
Scenario: Josh activates John's account
Given I have received notification of John's payment
When I activate John's account
Then a welcome email should be sent to John
@john_from_bloomberg
Scenario: John receives a welcome email
Given I have received a welcome email
When I follow the link
Then I am shown the welcome page
@john_from_bloomberg
Scenario: John creates his password and enters LIFE
Given I have received a welcome email
When I follow the link
And I create my password
Then I am shown the LIFE home page
Feature: Promo Codes
In order to allow certain people or organisations to purchase LIFE membership
As Josh the Business Development Director
I want the ability to create promo codes
@josh
Scenario: Josh creates a promo code
When I create a new promo code
Then I should be able to define the code phrase
And I should be able to define how many times it can be used
@john_from_bloomberg
Scenario: John applies using a promo code
Given I know the LIFExBLOOMBERG promo code
When I visit the LIFE application page
And I fill in my details with the promo code
Then I should be taken directly to the checkout page
@john_from_bloomberg
Scenario: John pays for his LIFE membership
When I complete the checkout process
Then I should be told my account will be activated soon
@josh
Scenario: Josh activates John's account
Given I have received notification of John's payment
When I activate John's account
Then a welcome email should be sent to John
@john_from_bloomberg
Scenario: John receives a welcome email
Given I have received a welcome email
When I follow the link
Then I am shown the welcome page
@john_from_bloomberg
Scenario: John creates his password and enters LIFE
Given I have received a welcome email
When I follow the link
And I create my password
Then I am shown the LIFE home page
Feature: Complimentary Accounts
In order to cater for certain special people who promote our business
As Josh the Business Development Director
I want the ability to create special free accounts for special people
@josh
Scenario: Josh creates a complimentary account
When I create a new complimentary account for Lawrence
Then a welcome email should be sent to Lawrence
@lawrence
Scenario: Lawrence receives a welcome email
Given I have received a welcome email
When I follow the link
Then I am shown the welcome page
@lawrence
Scenario: Lawrence creates his password and enters LIFE
Given I have received a welcome email
When I follow the link
And I create my password
Then I am shown the LIFE home page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment