Last Updated: February 25, 2016
· depy

Testing redis with RSpec

Here's how I test redis with RSpec. May not be the best way to test it but it works well enough for us. We make a connection in "before" block and then switch to database number #15 which is not used so we can safely flush it. Then after each "it" block we flush the database so we work with empty database.

Hope this helps someone... :)


1 Response
Add your response


The Gist link returns 404?

over 1 year ago ·