diff options
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 0e0191e804..4b8e66b569 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -15,31 +15,3 @@ ActiveSupport.test_order = :sorted # 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 |