I am currently working on a messaging system with ruby-amqp, for testing I am using rspec.
If a test fails, I still have messages in queues after the test is finished. Is there a way to clean up all queues like the database_cleaner gem does it for databases?
I am currently working on a messaging system with ruby-amqp, for testing I am
Share
You may delete the whole queue with AMQP::Queue#delete
Just take the AMQP::Queue instance and call
or