提交 05b760d9 编写于 作者: P Pratik Naik

Remove busted tests

上级 56891644
require 'test_helper'
# FIXME: Currently busted.
#
# class ServerTest < ActionCableTest
# class ChatChannel < ActionCable::Channel::Base
# end
#
# class ChatServer < ActionCable::Server::Base
# register_channels ChatChannel
# end
#
# def app
# ChatServer
# end
#
# test "channel registration" do
# assert_equal ChatServer.channel_classes, Set.new([ ChatChannel ])
# end
#
# test "subscribing to a channel with valid params" do
# ws = Faye::WebSocket::Client.new(websocket_url)
#
# ws.on(:message) do |message|
# puts message.inspect
# end
#
# ws.send command: 'subscribe', identifier: { channel: 'chat'}.to_json
# end
#
# test "subscribing to a channel with invalid params" do
# end
# end
......@@ -15,31 +15,3 @@
# Require all the stubs and models
Dir[File.dirname(__FILE__) + '/stubs/*.rb'].each {|file| require file }
class ActionCableTest < ActiveSupport::TestCase
PORT = 420420
setup :start_puma_server
teardown :stop_puma_server
def start_puma_server
events = Puma::Events.new(StringIO.new, StringIO.new)
binder = Puma::Binder.new(events)
binder.parse(["tcp://0.0.0.0:#{PORT}"], self)
@server = Puma::Server.new(app, events)
@server.binder = binder
@server.run
end
def stop_puma_server
@server.stop(true)
end
def websocket_url
"ws://0.0.0.0:#{PORT}/"
end
def log(*args)
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册