Inspired by how WebMock prevents accidental HTTP & HTTPS calls to other hosts than localhost to avoid depending on external dependencies in your tests I wanted to achieve the same trust in my specs that are generating published events to my (AMQP) RabbitMQ message queue.
This avoids my specs accidentally filling a queue used in development and ensures that I have expects in place to stub and verify the behaviour of talking to my rabbit dependency.
Enjoy, Cheers!