我关注了spork railscast 视频,当我尝试运行警卫时,它给了我以下错误:
Guard is now watching at '/Users/m/work/'
Starting Spork for Test::Unit & RSpec
Couldn't find a supported test framework that begins with 'testunit'
Supported test frameworks:
( ) Cucumber
(*) RSpec
Legend: ( ) - not detected in project (*) - detected
Using RSpec
Preloading Rails environment
Loading Spork.prefork block...
Spork is ready and listening on 8989!
--> ERROR: Could not start Spork server for Test::Unit & RSpec. Make sure you can use it manually first.
Guard::RSpec is running, with RSpec 2!
Running all specs
看起来 spork 服务器启动正常,然后出错并尝试继续。我尝试将 :wait 选项设置为 120 秒,但仍然存在相同的问题。
如果我在没有 guard & guard-spork 的情况下执行测试,Spork 工作正常
环境:
- Mac OSX
- 导轨 (3.1.1)
- 后卫(0.8.8)
- 后卫-rspec (0.5.4)
- 叉叉 (0.9.0.rc9)
- 防护叉 (0.3.1)
我将如何调试这个问题?我不知道从哪里开始。