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... :)
Written by Matjaz Muhic
Related protips
1 Response
The Gist link returns 404?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#