-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stop_stream_from causes undefined method 'pubsub' #2493
Comments
Have you had a chance to investigate the root cause, @jasonatball ? |
Reproduceable on rails 6.1.3.1. Reproduction steps: Install rails, rails new blog. Update Gemfile to add rspec-rails to test group:
Install rspec: Add following method to app/channels/application_cable/channel.rb:
Create following spec/channels/channel_spec.rb
Run spec: Observe error:
Fix issue by adding code to channel_spec.rb:
|
Not sure if always defering to ActionCable.server.pubsub via ConnectionStub pubsub is the correct solution but this worked for me. |
What Ruby, Rails and RSpec versions are you using?
Ruby version: 2.7.2
Rails version: 6.1.3.1
RSpec version: 3.10
Observed behaviour
Full write-up in Rails repo under issue rails/rails#41077
The text was updated successfully, but these errors were encountered: