spec/support/controller_spec_helpers.rb in dashing-rails-2.6.1 vs spec/support/controller_spec_helpers.rb in dashing-rails-2.6.2
- old
+ new
@@ -4,6 +4,11 @@
end
def stub_redis(stubbed_redis)
allow(Dashing.config).to receive(:redis).and_return(stubbed_redis)
end
+
+ def stub_redis_with_connection(stubbed_redis, stubbed_redis_connection)
+ stub_redis(stubbed_redis)
+ allow(stubbed_redis).to receive(:with).and_yield(stubbed_redis_connection)
+ end
end