0

尝试在 RubyMine 中将 Rspec 与 Spork 一起使用;

宝石文件:

gem 'spork', '~> 1.0rc'

.rspec:

--color
--drb

spec_helper.rb

$ spork rspec


Using RSpec, Unknown
  -- Starting to fill pool...
     Wait until at least one slave is provided before running tests...
  ** CTRL+BREAK to stop Spork and kill all ruby slave processes **
Spork is ready and listening on 8989!
  -- Rinda Ring Server listening for connections...

   -- build slave 1...
   -- build slave 2...
Loading Spork.prefork block...
Loading Spork.prefork block...
Rack::File headers parameter replaces cache_control after Rack 1.5.
Rack::File headers parameter replaces cache_control after Rack 1.5.
  --> DRb magazine_slave_service: 1 provided...
  --> DRb magazine_slave_service: 2 provided...

(Rspec,未知?!WTF)而且.. 没有更多的输出。如何运行规范?

我做错了什么?=)

4

1 回答 1

0

谢谢大家。问题解决了。我的错误,需要使用$ rspec ..而不是$ rake spec

于 2013-02-14T17:30:41.420 回答