【问题标题】:why the spork not run?为什么spork不运行?
【发布时间】:2016-09-18 20:43:26
【问题描述】:

Spork pic 请帮忙 需要“红宝石” 需要'spork' 需要'rspec/core'

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

【问题讨论】:

  • 请编辑您的问题并包含错误消息,以便无需点击即可阅读并通过文本搜索找到。
  • 你要变成什么奴隶..?

标签: ruby-on-rails guard spork


【解决方案1】:

可能是由于 Rinda 修补程序不适用于 Windows 上较新的 Ruby 版本:https://github.com/sporkrb/spork/pull/253

最好切换到 Zeus 或 Spring 之类的东西,除了 fork() 在 Windows 上不起作用。所以最好的方法是只使用虚拟机,比如 Vagrant 在 Linux 上运行项目。 (Guard 使用 Listen,Listen at 2.x 支持 TCP,因此您可以在 Windows 机器上编辑文件并让 Guard 在虚拟机上运行测试)。

【讨论】:

    猜你喜欢
    • 2013-09-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-21
    • 2023-03-11
    • 2012-09-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多