-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add controller spec to ensure lead image markdown isn't in body
This does 2 things: 1. updates the vaidation that checks for the markdown for a lead image not being in the body to use the edition_lead_image rather than the lead_image association. The lead image association returns nil until persisted. We need to make sure the built edition_lead_image is valid. 2. adds a controller spec to ensure that update endpoint fails with a relevant error message when a user tries to make an image the lead image with it's markdown in the body.
- Loading branch information
1 parent
06da2ff
commit 8256b38
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters