1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/test/stubs/test_server.rb

13 lines
269 B
Ruby
Raw Normal View History

2015-07-12 11:07:31 -04:00
require 'ostruct'
class TestServer
2015-07-12 12:44:46 -04:00
include ActionCable::Server::Connections
2015-07-12 11:07:31 -04:00
attr_reader :logger, :config
def initialize
@logger = ActiveSupport::TaggedLogging.new ActiveSupport::Logger.new(StringIO.new)
@config = OpenStruct.new(log_tags: [])
end
end