xfp7ka
Last Updated: February 25, 2016
·
1.968K
· 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... :)

https://gist.github.com/4176275

1 Response
Add your response

22884

The Gist link returns 404?

over 1 year ago ·