-
Notifications
You must be signed in to change notification settings - Fork 328
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
uninitialized constant Turbo::Broadcastable::TestHelper::ActionCable #573
Comments
@swanson could this have been introduced by #565 ? via https://github.com/hotwired/turbo-rails/blob/main/lib/turbo/broadcastable/test_helper.rb#L7 |
Looks like you beat me to this one by 10 minutes. Yeah it's definitely the test helper assuming that ActionCable is available. I believe the entire test helper should be able to be skipped if ActionCable isn't present, the helper isn't useful otherwise. |
Closes [hotwired#573][] Related to [hotwired#565][] Re-structure the automatic inclusion of the `Turbo::Broadcastable::TestHelper` module so that it's only automatically loaded and installed when Action Cable is available to the runtime. [hotwired#573]: hotwired#573 [hotwired#565]: hotwired#565 (comment)
I've opened #574 to try to address this. I'm a little hazy on the loading order quirks, so could you pull it down and test it out with your application's test harnesses? |
This works around a bug in turbo-rails 2.0.2 hotwired/turbo-rails#573 We should be able to revert this if that issue is resolved in a future release
Closes [hotwired#573][] Related to [hotwired#565][] Re-structure the automatic inclusion of the `Turbo::Broadcastable::TestHelper` module so that it's only automatically loaded and installed when Action Cable is available to the runtime. [hotwired#573]: hotwired#573 [hotwired#565]: hotwired#565 (comment)
Closes [hotwired#573][] Related to [hotwired#565][] Re-structure the automatic inclusion of the `Turbo::Broadcastable::TestHelper` module so that it's only automatically loaded and installed when Action Cable is available to the runtime. [hotwired#573]: hotwired#573 [hotwired#565]: hotwired#565 (comment)
This works around a bug in turbo-rails 2.0.2 hotwired/turbo-rails#573 We should be able to revert this if that issue is resolved in a future release
This works around a bug in turbo-rails 2.0.2 hotwired/turbo-rails#573 We should be able to revert this if that issue is resolved in a future release
Closes [#573][] Related to [#565][] Re-structure the automatic inclusion of the `Turbo::Broadcastable::TestHelper` module so that it's only automatically loaded and installed when Action Cable is available to the runtime. [#573]: hotwired/turbo-rails#573 [#565]: hotwired/turbo-rails#565 (comment)
When generating a Rails app with
--skip-action-cable
and then installing turbo rails 2.0.2 I see this error when I load the test environment:This was not a problem with turbo-rails 1.5.0 or 2.0.0
The text was updated successfully, but these errors were encountered: