Module: ActionCable::Connection::TestConnection
- Defined in:
- lib/action_cable/connection/test_case.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
48 49 50 |
# File 'lib/action_cable/connection/test_case.rb', line 48 def logger @logger end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
48 49 50 |
# File 'lib/action_cable/connection/test_case.rb', line 48 def request @request end |
Instance Method Details
#initialize(request) ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/action_cable/connection/test_case.rb', line 50 def initialize(request) inner_logger = ActiveSupport::Logger.new(StringIO.new) tagged_logging = ActiveSupport::TaggedLogging.new(inner_logger) @logger = ActionCable::Connection::TaggedLoggerProxy.new(tagged_logging, tags: []) @request = request @env = request.env end |