I have the following code:
Rails.cache.redis.ping == "PONG"
and I'm trying to write a spec to stub this response so that I can control what it returns in tests. However, usual simple expectations don't seem to work here as it's a method chain.
How would I test this code in RSpec?