ruby-on-rails - 带有 "Retry later"消息的 chrome 中的 cucumber 失败

标签 ruby-on-rails google-chrome tdd cucumber

我正在尝试运行我的 cucumber 测试,它们似乎随机停止。访问了一个新页面,但除了 Retry later 外,页面上没有任何内容呈现,如下面的屏幕截图所示。

我在 OS X 10.9.3、Chrome 35.0.1916.114 上,并使用 bundle exec cucumber 运行。如果我更改 javascript 驱动程序,它也会在 Firefox 中发生。

最佳答案

问题不在于 Chrome、Cucumber 或 Capybara。这是与 Rack::Attack127.0.0.1 被列入白名单,但根据 this github issue

it wasn't whitelisting ipv6 and transitional loopback ip addresses



为了简化事情,我只是将 Rack Attack 移至仅用于生产。

tl;博士
Rack::Attack 是罪魁祸首。除非您在测试环境中需要它,否则只需制作 gem 产品即可。

关于ruby-on-rails - 带有 "Retry later"消息的 chrome 中的 cucumber 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24001628/

相关文章:

html - 与 chrome 或 mozilla 相比,Internet Explorer 11 或 IE 8 显示不同的网页布局

python - 针对时间相关的测试数据(或测试数据逐渐过时)的正确方法

nunit - 如何在 NUnit 中编写测试方法来测试保存文件方法?

javascript - Rails xhr.send( ( options.hasContent && options.data ) || null );错误

ruby-on-rails - rails 3 : What is the default order of "MyModel.all"?

apache - 如何阻止 Chrome 重定向到 HTTPS?

google-chrome - 如何阻止 chrome 响应检查器更改缩放?

javascript - jQuery 如果带有选择的表单已填写,则显示 div

ruby-on-rails - Ruby on Rails key ActiveRecord 结果集到哈希

refactoring - 如果您更改了具有针对其的单元测试的代码,则首先更改哪个?