How to clear a mailbox in channelcase phoenix framework test
<p>I am doing a channel test that is receiving lots of messages. I may receive a message during setup, adjust some state and then I want to <code>assert</code> ( or <code>refute</code> ) another copy of that message was sent. I think I could do this by clearing the mailbox before causing the event which would trigger the second message. How do I clear the <code>channelcase</code> mailbox?</p>

<p>EDIT,
I have accomplished my needs by <code>assert_push</code> all of the old messages, which clears them off of the mailbox. This works well enough but would be very inconvenient if there were more than a few messages</p>