mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e77368637e
This new adapter does get a little more intimate with the redis-rb gem's implementation than I would like, but it's the least bad of the approaches I've come up with.
16 lines
359 B
Ruby
16 lines
359 B
Ruby
require 'test_helper'
|
|
require_relative './common'
|
|
|
|
class RedisAdapterTest < ActionCable::TestCase
|
|
include CommonSubscriptionAdapterTest
|
|
|
|
def cable_config
|
|
{ adapter: 'redis', driver: 'ruby', url: 'redis://127.0.0.1:6379/12' }
|
|
end
|
|
end
|
|
|
|
class RedisAdapterTest::Hiredis < RedisAdapterTest
|
|
def cable_config
|
|
super.merge(driver: 'hiredis')
|
|
end
|
|
end
|