Then the blog post should be written by "Jane Doe"

Assert the blog post does (or does not) name an author, as a link to the author's listing (/<blog>/author/<author>).

Examples

Then the blog post should be written by "Jane Doe"
And the blog post should be written by "John Roe"
Then the blog should be written by "Jane Doe"
But the blog post should not be written by "John Roe"
Then blog post should be written by "Jane Doe"

Pattern

Then(/^(?:the )?blog(?: post)? should( not)* be written by "([^"]*)"$/, …)

Part of @webship-js/hubspot-cms-steps (github.com/webship/hubspot-cms-steps), a step pack for Webship-js 2.0.x.