使用Rails 5.0.1进行Capybara Cucumber超时

时间:2017-02-10 17:14:55

标签: ruby-on-rails phantomjs capybara poltergeist

在Rails 5.0.1上使用ActionCable我之前正在进行的黄瓜测试现在给出:

  

机架应用程序在启动期间超时(RuntimeError)

访问页面

我的黄瓜环境文件包含:

require 'cucumber/rails'
require 'capybara/poltergeist'
# Require to enable javascript in tests
# See https://github.com/teampoltergeist/poltergeist
Capybara.javascript_driver = :poltergeist
# Required to test action cable.
# See http://stackoverflow.com/questions/35897189/capybara-not-working-with-action-cable
Capybara.server = :puma

1 个答案:

答案 0 :(得分:1)

你可能更新了puma到3.7.0 - 它有一个严重的错误,将在3.7.1发布后修复。现在恢复到3.6.9

gem 'puma', '!= 3.7.0'