class method
self.new
Ruby on Rails 8.1.2
Since v6.0.6Signature
self.new(identifiers = {})
No documentation comment.
Parameters
-
identifiersopt = {}
Source
# 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
Defined in actioncable/lib/action_cable/channel/test_case.rb line 55
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::ConnectionStub