Assert that an e-mail with a subject to an address holds a text (in its text version, or in its HTML version without the tags).
Examples
Then the email with the subject "Your post received a comment!" to "administrator" should contain "has received a new comment"
Then the email with the subject "Your post received a comment!" to "administrator" should contain "A post of the webship-js suite"
And the email with the subject "Your post received a comment!" to "jane_admin@example.com" should contain "this link"
Then the email with the subject "Your post received a comment!" to "user" should contain "has received a new comment"
And the email with the subject "Your post received a comment!" to "administrator" should contain "this link"
Pattern
Then(/^the email with the subject "([^"]*)" to "([^"]*)" should contain "([^"]*)"$/, …)
Part of @webship-js/symfony-steps (github.com/webship/symfony-steps), a step pack for Webship-js 2.0.x.