繁体   English   中英

使用Ruby 1.9.1 / Rails 2.3.2运行RSpec

[英]Running RSpec with Ruby 1.9.1/Rails 2.3.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)

任何帮助将不胜感激。

您需要卸载测试单元2.0.2,如果存在,Rspec无法正确加载1.2.3。

当您进行sudo gem update如果不考虑新版本的测试单元带来的所有麻烦,有时会很困难。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM