Action Cable Channel Stub

Stub stream_from to track streams for the channel. Add public aliases for subscription_confirmation_sent? and subscription_rejected?.

Methods

Instance Public methods

confirmed?()

📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 24
      def confirmed?
        subscription_confirmation_sent?
      end
🔎 See on GitHub

rejected?()

📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 28
      def rejected?
        subscription_rejected?
      end
🔎 See on GitHub

start_periodic_timers()

Make periodic timers no-op

Also aliased as: stop_periodic_timers
📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 45
      def start_periodic_timers; end
🔎 See on GitHub

stop_all_streams()

📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 36
      def stop_all_streams
        @_streams = []
      end
🔎 See on GitHub

stop_periodic_timers()

stream_from(broadcasting, *)

📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 32
      def stream_from(broadcasting, *)
        streams << broadcasting
      end
🔎 See on GitHub

streams()

📝 Source code
# File actioncable/lib/action_cable/channel/test_case.rb, line 40
      def streams
        @_streams ||= []
      end
🔎 See on GitHub