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

RoR Redis subscription rspec stub

$
0
0

I'm working on finding a stub for:

 @redis.subscribe(key) do |on|   on.message do |channel, message|      handle_message(message)   end end

However I am unsure what type of object on is? How can we iterate on two fields channel, and message without a .each block? This seems to be a pretty common chunk of code if anyone had any examples for some unit tests.


Viewing all articles
Browse latest Browse all 873

Trending Articles



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