You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a lot of duplicated code and testing going on for the controllers of each of our publication types. For this issue, we should:
Create a detailed set of tests for PublicationsController, testing each of the CRUD functions it offers, and including testing for:
template rendering
error handling
redirection logic
flash messages
authentication and authorization.
Create a shared example for CRUD operations that checks only the happy path for each of the functions.
Apply this shared example to one of the publication types, removing the CRUD testing from within the controller spec. Have this example reviewed as a PR.
Apply the shared example to all other publication types, using 1 PR per publication type.
The text was updated successfully, but these errors were encountered:
We have a lot of duplicated code and testing going on for the controllers of each of our publication types. For this issue, we should:
The text was updated successfully, but these errors were encountered: