blob: 3b4a7eaf90bfaea71fa4eeb73a35e5644d1a2db5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require "test_helper"
class BroadcastingTest < ActiveSupport::TestCase
class TestServer
include ActionCable::Server::Broadcasting
end
test "fetching a broadcaster converts the broadcasting queue to a string" do
broadcasting = :test_queue
server = TestServer.new
broadcaster = server.broadcaster_for(broadcasting)
assert_equal "test_queue", broadcaster.broadcasting
end
end
|