无法使用Capybara-webkit运行Rspec测试

时间:2014-10-02 16:10:31

标签: ruby-on-rails-3 capybara capybara-webkit

它刚刚开始 - 任何想法?

尝试卸载并重新安装QT(4.8.6),升级Xcode,brew医生,检查spec_helper中的设置 - 这一切都正确无误。

失败/错误:访问controls_path      水豚:: Webkit的:: ConnectionError:        /usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/bin/webkit_server无法启动。      #/usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/lib/capybara/webkit/connection.rb:75:in parse_port' # /usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/lib/capybara/webkit/connection.rb:81:in discover_port&#39;      #/usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/lib/capybara/webkit/connection.rb:62:in start_server' # /usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/lib/capybara/webkit/connection.rb:25:in初始化&#39;      #/usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/lib/capybara/webkit/driver.rb:17:in new' # /usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/lib/capybara/webkit/driver.rb:17:in初始化&#39;      #/usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/lib/capybara/webkit.rb:11:in new' # /usr/local/rvm/gems/ruby-2.1.1/gems/capybara-webkit-1.3.0/lib/capybara/webkit.rb:11:in阻止&#39;      #/usr/local/rvm/gems/ruby-2.1.1/gems/capybara-2.4.1/lib/capybara/session.rb:79:in call' # /usr/local/rvm/gems/ruby-2.1.1/gems/capybara-2.4.1/lib/capybara/session.rb:79:in driver&#39;      #/usr/local/rvm/gems/ruby-2.1.1/gems/capybara-2.4.1/lib/capybara/session.rb:65:in initialize' # /usr/local/rvm/gems/ruby-2.1.1/gems/capybara-2.4.1/lib/capybara.rb:248:in new&#39;      #/usr/local/rvm/gems/ruby-2.1.1/gems/capybara-2.4.1/lib/capybara.rb:248:in current_session' # /usr/local/rvm/gems/ruby-2.1.1/gems/capybara-2.4.1/lib/capybara/dsl.rb:46:in page&#39;      #/usr/local/rvm/gems/ruby-2.1.1/gems/capybara-2.4.1/lib/capybara/dsl.rb:51:in block (2 levels) in <module:DSL>' # ./spec/features/controls_spec.rb:17:in阻止(3级)&#39;

1 个答案:

答案 0 :(得分:1)

老实说,我不知道最终是什么让它发挥作用 - 但我让它发挥作用。

基本上卸下所有东西并重新安装了东西,但是在这一切过程中,我在一段特定的步骤后迷失了测试,并开始工作而没有注意到我刚刚做了什么。

如有疑问:重新安装我猜= /