[Clip Restriction] Clip notifications
When a clip fills up (i.e. if the clip's confirmed memberships count is equal to the max clip size) we want two things to happen-
- All unconfirmed clipmemberships for that clip must be destroyed
- Group leaders will be notified via email that this clip has been filled
- Groups who are in the now-full clip will be notified that their clip is now full
- Groups who had their clip_memberships destroyed will be notified that the clip they were invited to join is now full
Both of these actions should be done in the clip_membership_updater
Tests- A clip that is one short of the maximum size has a membership confirmed-
- Test that its non-confirmed memberships are destroyed (i.e. receive
:destroy
) - Test that enough emails are sent (i.e. test that the mailer is called enough times)
You should be able to do these as unit tests without persisting data.
Edited by Matt Coshal