2

我一直试图让 RSpec 在 Ruby 1.9 下运行,但我的测试没有运行。这是我的踪迹:

matt@matt-desktop:~/Development/my_app$ sudo rake spec --trace
(in /home/matt/Development/my_app)
** Invoke spec (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment 
** Execute db:test:purge
** Execute db:test:load
** Invoke db:schema:load (first_time)
** Invoke environment 
** Execute db:schema:load
** Execute spec

就是这样,没有任何反应。

这是适当的宝石:

cucumber (0.3.11, 0.3.9)
rails (2.3.2)
rake (0.8.7)
rspec (1.2.6)
rspec-rails (1.2.6)
test-unit (2.0.2, 1.2.3)

任何帮助将不胜感激。

4

2 回答 2

4

您需要卸载 test-unit 2.0.2,如果 1.2.3 存在,Rspec 不会正确加载它。

于 2009-06-11T14:56:59.540 回答
0

当您sudo gem update不考虑我们在新版本的测试单元中遇到的所有混乱时,有时会很困难。

于 2009-07-30T13:10:05.510 回答