Verifying that the error message is displayed is done in the integration test. We could add a check that `flash[:error]` is set, but feel that it'd be duplicating effort. Happy to add a check like `flash[:error]` is not empty, if you feel it to be necessary.

If a code change does cause `flash[:error]` not to be set, the integration test will pick it up though.