An e-mail the site sent to an address, by a part of its subject. The step waits for the e-mail to arrive in the mailbox of the test site.
Examples
Then an e-mail with the subject "Sign in to Test site" should have been sent to "member@example.com"
Then an e-mail with the subject "Complete your sign up" should have been sent to "newcomer@example.com"
Then an e-mail with the subject "Sign in" should have been sent to "vera@example.com"
And an e-mail with the subject "Test site" should have been sent to "member@example.com"
And an e-mail with the subject "sign up" should have been sent to "nora@example.com"
Pattern
Then(/^an e-mail with the subject "([^"]*)" should have been sent to "([^"]*)"$/, …)
Part of @webship-js/ghost-steps (github.com/webship/ghost-steps), a step pack for Webship-js 2.0.x.