【问题标题】:Running RSpec with Ruby 1.9.1/Rails 2.3.2使用 Ruby 1.9.1/Rails 2.3.2 运行 RSpec
【发布时间】:2009-06-11 14:53:48
【问题描述】:

我一直试图让 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)

任何帮助将不胜感激。

【问题讨论】:

    标签: ruby-on-rails ruby rspec


    【解决方案1】:

    你需要卸载 test-unit 2.0.2,Rspec 如果存在 1.2.3 则无法正确加载。

    【讨论】:

    • 嗯,奇怪。看起来虽然修复了它。谢谢!
    • 没问题,我升级的时候确实出了点问题!
    【解决方案2】:

    当你做一个sudo gem update而不考虑我们在新版本的测试单元中的所有混乱时,有时会很困难..

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-20
      • 1970-01-01
      相关资源
      最近更新 更多