Methods
Attributes
[R] | identifiers | |
[R] | logger | |
[R] | subscriptions | |
[R] | transmissions |
Class Public methods
new(identifiers = {})
📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 50
def initialize(identifiers = {})
@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
🔎 See on GitHub
Instance Public methods
transmit(cable_message)
📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 62
def transmit(cable_message)
transmissions << cable_message.with_indifferent_access
end
🔎 See on GitHub