palkan / action-cable-testing

Action Cable testing utils
MIT License
213 stars 17 forks source link

docs about compatibility/how-to-migrate #38

Closed namiwang closed 5 years ago

namiwang commented 5 years ago

I'm so happy that the related codes are finally merged into rails. Thanks for the gem, it's a saver for years.

Currently, I'm using this gem in several projects, I'd like to know if I can migrate to rails and drop one more dependency.

Also, It would be great if someone could note the compability of this gem and anycable somewhere.

Thanks!

palkan commented 5 years ago

Hi! Thanks for the feedback!

This functionality will be released in Rails 6 (which first beta is planned for May 2019). So you don't have to migrate to Rails version unless you want to live with Rails 6 alpha)

We'll upgrade this gem as soon as the final testing tools will be merged into Rails (not everything has been merged yet) and RSpec (haven't started this yet).

The upgrade path will be the following:

Thus our goal is to make this library compatible with the future Rails releases to make upgrade as easy as possible.

namiwang commented 5 years ago

@palkan Thanks! BTW what's the compatibility between this gem and anycable? Do you think I can tweak some class names and use this gem to test against an anycable project?

palkan commented 5 years ago

if you use anycable with Rails, you don't need to change anything, 'cause you're still using Action Cable classes. That is, you write channel/connection unit-tests without any additional configuration.

namiwang commented 5 years ago

Thanks!