diff options
author | Blake Stoddard <blake.m.stoddard@gmail.com> | 2019-04-22 09:59:53 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2019-04-22 09:59:53 -0400 |
commit | 70d64169ae03eff911028be80b7f00bbb5784a67 (patch) | |
tree | 718d4a640597ffccea70eb53207e95cd46330dd4 /actioncable/test | |
parent | 70e255b9f20ffa5d49b90cfaa4c30f5a53cc66a2 (diff) | |
download | rails-70d64169ae03eff911028be80b7f00bbb5784a67.tar.gz rails-70d64169ae03eff911028be80b7f00bbb5784a67.tar.bz2 rails-70d64169ae03eff911028be80b7f00bbb5784a67.zip |
ActionCable: don't allowlist keys passed to the Redis initializer
Support all Redis features without needing to maintain a list of valid options that must stay in sync with the upstream client library.
Diffstat (limited to 'actioncable/test')
-rw-r--r-- | actioncable/test/subscription_adapter/redis_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actioncable/test/subscription_adapter/redis_test.rb b/actioncable/test/subscription_adapter/redis_test.rb index 35840a4036..d4eb89719f 100644 --- a/actioncable/test/subscription_adapter/redis_test.rb +++ b/actioncable/test/subscription_adapter/redis_test.rb @@ -34,11 +34,11 @@ class RedisAdapterTest::AlternateConfiguration < RedisAdapterTest end class RedisAdapterTest::Connector < ActionCable::TestCase - test "slices url, host, port, db, password and id from config" do + test "excludes adapter and channel prefix" do config = { url: 1, host: 2, port: 3, db: 4, password: 5, id: "Some custom ID" } assert_called_with ::Redis, :new, [ config ] do - connect config.merge(other: "unrelated", stuff: "here") + connect config.merge(adapter: "redis", channel_prefix: "custom") end end |