diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-06 20:40:42 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-14 17:46:48 +0100 |
commit | 3ae8eb13cb4967f533339ecddf93e19f06caa6d2 (patch) | |
tree | c01fcf170819e1a2c23b517536b726f0eb4964a9 /actioncable/lib/action_cable | |
parent | 861ece99bb6d7ebdb27fad7db5ccc05340aaf0e5 (diff) | |
download | rails-3ae8eb13cb4967f533339ecddf93e19f06caa6d2.tar.gz rails-3ae8eb13cb4967f533339ecddf93e19f06caa6d2.tar.bz2 rails-3ae8eb13cb4967f533339ecddf93e19f06caa6d2.zip |
Don't rely on the global server as a receiver.
The `WorkerTest`'s `Receiver` is imporsonating an `ActionCable::Connection::Base`, but
just delegates the logger to `ActionCable.logger`.
This creates a mismatch as the connection requires the logger to be a
`TaggedLoggerProxy`'ied logger, while the server doesn't.
Thus to ensure an exception isn't raised when the worker tries to call `tag`
other tests have to assign a proxied logger to their test server.
Instead of forcing change on other tests, have Receiver adhere to the connection
contract and use a `TaggedLoggerProxy`.
As a consequence remove more setup from the tests.
Diffstat (limited to 'actioncable/lib/action_cable')
0 files changed, 0 insertions, 0 deletions