2016-05-21 82 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在虚拟机上运行测试)。