“错误Errno :: EPIPE:破管”与Culerity

时间:2010-08-09 23:44:42

标签: ruby-on-rails cucumber culerity

我最近在黄瓜上安装了culerity。但是当我运行我的黄瓜规格时,它们会变红(之前它们都是绿色的)。

我得到的错误有这样的形式:

  

迅捷::异常:: NavigationException:   com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException:   500内部服务器错误   http://localhost:3001/   (Culerity :: CulerityException)   feature / admin.feature:82:在`我是   登录'

当我查看Web服务器控制台(由rake culerity:rails:start启动)时,错误是:

  

ERROR Errno :: EPIPE:管道破损

我注意到每当我有$ browser.goto的黄瓜步骤(比如“go to”)时就会发生这些错误。

有什么想法吗?

PS:我确保安装了JRuby并且在我的路径中

4 个答案:

答案 0 :(得分:0)

我相信将jruby升级到与我们运行的ruby补丁级别匹配的版本解决了我们的问题,我们必须从源代码安装jruby以获得正确的版本

答案 1 :(得分:0)

这就是宝石的自述文件:

I get a broken pipe error:

    * make sure JRuby is installed and in your path: running jruby -v should not 
produce an error

答案 2 :(得分:0)

也许这与我遇到的问题有关:http://github.com/langalex/culerity/issues/#issue/29

答案 3 :(得分:0)

我们在Bundler上使用Rails应用程序遇到了类似的问题(破管):

server = Culerity::run_server

实际上没有启动服务器,只剩下

Culerity::RemoteBrowserProxy.new(server, …)

高而干燥。

使用RUBYOPT env var(请参阅how Bundler modifies the environment了解详细信息)将Bundler混乱,bin/run_celerity_server.rb(来自culerity gem)以JRuby作为解释器和JRuby honors RUBYOPT运行。< / p>

由于Bundler不是JRuby gem,因此脚本无法启动服务器。必须在无Bundler的环境中调用Culerity::run_server(即,使用干净的RUBYOPT

相关问题