mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f8477f13bf
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
17 lines
499 B
Ruby
17 lines
499 B
Ruby
require "test_helper"
|
|
|
|
class SubscriberMapTest < ActionCable::TestCase
|
|
test "broadcast should not change subscribers" do
|
|
setup_subscription_map
|
|
origin = @subscription_map.instance_variable_get(:@subscribers).dup
|
|
|
|
@subscription_map.broadcast("not_exist_channel", "")
|
|
|
|
assert_equal origin, @subscription_map.instance_variable_get(:@subscribers)
|
|
end
|
|
|
|
private
|
|
def setup_subscription_map
|
|
@subscription_map = ActionCable::SubscriptionAdapter::SubscriberMap.new
|
|
end
|
|
end
|