mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8541394e71
ActionCable::Channel::TestCase provides an ability to unit-test channel classes. There are several reasons to write unit/functional cable tests: - Access control (who has access to the channel? who can perform action and with which argument? - Frontend-less applications have no system tests at all–and we still need a way to test channels logic. See also #27191
17 lines
322 B
Ruby
17 lines
322 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ActionCable
|
|
module Channel
|
|
extend ActiveSupport::Autoload
|
|
|
|
eager_autoload do
|
|
autoload :Base
|
|
autoload :Broadcasting
|
|
autoload :Callbacks
|
|
autoload :Naming
|
|
autoload :PeriodicTimers
|
|
autoload :Streams
|
|
autoload :TestCase
|
|
end
|
|
end
|
|
end
|