更新时间:2023-02-12 16:56:14
原因是在Rspec3中删除了RSpec :: Core :: CommandLine
The reason is that RSpec::Core::CommandLine was removed in Rspec3
https://github.com/rspec/rspec-core/blob/master/Changelog .md
将RSpec :: Core :: CommandLine(从未正式声明为公共)合并到RSpec :: Core :: Runner中. (迈伦·马斯顿)
Merge RSpec::Core::CommandLine (never formally declared public) into RSpec::Core::Runner. (Myron Marston)
但是spork取决于此代码.
But spork depends on this code.
spork的github上已经存在问题,可以在以下spork的fork中找到解决方案:
There is already an issue on spork's github and a solution can be found in a following spork's fork:
https://github.com/codecarson/spork/commit/38c79dcedb246daacbadb9f18d09f50cc837de51#diff-937afaa19ccfee172d722a05112a7c6fL6
通常-替换
::RSpec::Core::CommandLine.new(argv).run(stderr, stdout)
使用
::RSpec::Core::Runner.run(argv,stderr, stdout)
在soprks源代码中
in the soprks source code