【问题标题】:Capybara Cucumber timeout with Rails 5.0.1使用 Rails 5.0.1 的 Capybara Cucumber 超时
【发布时间】:2017-06-29 03:16:49
【问题描述】:

在 Rails 5.0.1 上使用 ActionCable 我以前工作的黄瓜测试现在给出:

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

访问页面时

我的黄瓜 env 文件包含:

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

【问题讨论】:

    标签: ruby-on-rails phantomjs capybara poltergeist


    【解决方案1】:

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

    gem 'puma', '!= 3.7.0'
    

    【讨论】:

      猜你喜欢
      • 2018-06-06
      • 1970-01-01
      • 2012-02-05
      • 2011-07-05
      • 2012-04-30
      • 2013-05-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多