Skip to content

Instantly share code, notes, and snippets.

@denmarkin
Created March 11, 2011 20:05
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 denmarkin/866476 to your computer and use it in GitHub Desktop.
Save denmarkin/866476 to your computer and use it in GitHub Desktop.
Example email testing cucumber feature
Feature: Notify admin when new company added
In order to manage registration
As an admin
I want to be notified by email about new company added
Scenario: Notify admin about new company
Given they have no companies
When they create company titled MailChimp
Then I should receive an email with subject "Please moderate company ExampleInc"
When I open the email with subject "Please moderate company ExampleInc"
And I follow "Review" in the email
Then I go to the admin list of companies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment