I use Rails 5 beta 3 with an action cable, the integration works fine in development, but when I try to run a function test through capybara, it does not seem to affect the channel actions.
I am using Portergeist and configured puma as capybara server. I also use es5-shim and es6-shim.
Has anyone else experienced this or know a workaround?
Thanks!
Edit
I use this capybara branch to configure Puma in Capybara
Capybara.register_server :puma do |app, port, host| require 'puma' Puma::Server.new(app).tap do |s| s.add_tcp_listener host, port end.run.join end
I did not set anything in config.action_cable.allowed_request_origins
ruby-on-rails ruby-on-rails-5 rspec capybara actioncable
Sergio D. Márquez
source share