2016-11-17 38 views
3

我想在我的Rails應用程序運行RSpec的測試和不斷收到以下錯誤:RSpec的測試失敗 - 顯示插座取,但鎖文件丟失

:> rspec spec/controllers/api/v0/buying_strategies_controller_spec.rb 
    WARN: Unresolved specs during Gem::Specification.reset: 
     activemodel (< 6.0, >= 3.0, >= 4.2.0) 
     activesupport (>= 3.0, >= 4.2.0) 
    WARN: Clearing out unresolved specs. 
    Please report a bug if this causes problems. 
/Users/christopherdanella/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/headless-2.3.1/lib/headless.rb:207:in `ensure_xvfb_launched': Display socket is taken but lock file is missing - check the Headless troubleshooting guide (Headless::Exception) 
from /Users/christopherdanella/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/headless-2.3.1/lib/headless.rb:195:in `launch_xvfb' 

這裏的故障排除指南http://www.rubydoc.info/github/leonid-shevtsov/headless#Display_socket_is_taken_but_lock_file_is_missing只是說,這是一個特殊的情況和解決問題。有任何想法嗎?

回答