2016-05-21 77 views
0

Spork pic 請幫助 需要 'RubyGems的' 需要 '叉勺' 需要 'rspec的/核心'爲什麼spork不運行?

Spork.prefork do 
end 

Spork.each_run do 
end 

RSpec.configure do |config| 
    config.expect_with :rspec do |expectations|   
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true 
    end 
    config.mock_with :rspec do |mocks| 
    mocks.verify_partial_doubles = true 
    end 
end 
+0

請編輯您的問題,幷包含錯誤信息,以便在沒有點擊並通過文本搜索找到的情況下閱讀。 –

+0

你是什麼變成奴隸..? – 13aal

回答

0

可能是由於Rinda補丁不使用較新的Ruby版本在Windows上運行:https://github.com/sporkrb/spork/pull/253

這可能是最好的切換到像宙斯或春天,除了fork()不適用於Windows。所以最好的方法是使用虛擬機,比如Vagrant在Linux上運行該項目。 (Guard使用Listen,Listen 2.x支持TCP,因此您可以在Windows機器上編輯文件並讓Guard在虛擬機上運行測試)。