Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

mock_redis or fakeredis for stubbing redis

$
0
0

I am working on application that has resque and redis. I am using resque_spec to stub resque in request specs and my college though that resque_spec will stub redis but it doesn't. I tried mock_redis and fakeredis gems. I have a problem with mock_redis - it thinks that 'get' is undefined method. I don't have problem with fakeredis. But I want to ask which gem is better - mock_redis or fakeredis and why?


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>