method
new
v8.0.0 -
Show latest stable
- Class:
ActionCable::Channel::ConnectionStub
new(identifiers = {})public
No documentation available.
# File actioncable/lib/action_cable/channel/test_case.rb, line 55
def initialize(identifiers = {})
@server = ActionCable.server
@transmissions = []
identifiers.each do |identifier, val|
define_singleton_method(identifier) { val }
end
@subscriptions = ActionCable::Connection::Subscriptions.new(self)
@identifiers = identifiers.keys
@logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
end