Remove busted tests
This commit is contained in:
parent
56891644d6
commit
05b760d959
@ -1,33 +0,0 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user