Class: Warren::Handler::Test::Channel
- Inherits:
-
Object
- Object
- Warren::Handler::Test::Channel
- Defined in:
- lib/warren/handler/test.rb
Overview
Stand in for Broadcast::Channel, provides a store of messages to use in test assertions
Instance Method Summary collapse
-
#<<(message) ⇒ Warren::Handler::Broadcast::Channel
Records ‘message` for testing purposes.
-
#initialize(warren) ⇒ Channel
constructor
A new instance of Channel.
Constructor Details
#initialize(warren) ⇒ Channel
Returns a new instance of Channel.
76 77 78 |
# File 'lib/warren/handler/test.rb', line 76 def initialize(warren) @warren = warren end |
Instance Method Details
#<<(message) ⇒ Warren::Handler::Broadcast::Channel
Records ‘message` for testing purposes
87 88 89 |
# File 'lib/warren/handler/test.rb', line 87 def <<() @warren << end |