Then the app's call should have been refused with "The user with this email already exists"

The app's call (the one named by "the app should have called", else its latest write) was refused: answered 400 or more, its detail containing the text (a reason, or a refused field's). Letter case and white space do not count.

Examples

Then the app's call should have been refused with "The user with this email already exists"
Then the app's call should have been refused with "Incorrect email or password"
And the app's call should have been refused with "Invalid token"
Then the app's call should have been refused with "at least 8 characters"
But the app's call should have been refused with "Not enough permissions"

Pattern

Then(/^the app's call should have been refused with "([^"]*)"$/, …)

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